[kaffe] CVS kaffe (robilad): Resynced with GNU Classpath: improved
resource bundle exception messages
Kaffe CVS
cvs-commits at kaffe.org
Thu Feb 10 15:20:06 PST 2005
PatchSet 5517
Date: 2005/02/10 23:11:11
Author: robilad
Branch: HEAD
Tag: (none)
Log:
Resynced with GNU Classpath: improved resource bundle exception messages
2005-02-10 Dalibor Topic <robilad at kaffe.org>
Resynced with GNU Classpath.
2005-02-07 Mark Wielaard <mark at klomp.org>
* java/util/ResourceBundle.java (getObject): Clarify
MissingResourceException detailed message.
(tryBundle(String,ClassLoader)): Likewise.
Members:
ChangeLog:1.3561->1.3562
libraries/javalib/java/util/ResourceBundle.java:1.25->1.26
Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3561 kaffe/ChangeLog:1.3562
--- kaffe/ChangeLog:1.3561 Thu Feb 10 23:07:51 2005
+++ kaffe/ChangeLog Thu Feb 10 23:11:11 2005
@@ -2,6 +2,16 @@
Resynced with GNU Classpath.
+ 2005-02-07 Mark Wielaard <mark at klomp.org>
+
+ * java/util/ResourceBundle.java (getObject): Clarify
+ MissingResourceException detailed message.
+ (tryBundle(String,ClassLoader)): Likewise.
+
+2005-02-10 Dalibor Topic <robilad at kaffe.org>
+
+ Resynced with GNU Classpath.
+
2005-02-07 Craig Black <craig.black at aonix.com>
* native/jni/classpath/native_state.c
Index: kaffe/libraries/javalib/java/util/ResourceBundle.java
diff -u kaffe/libraries/javalib/java/util/ResourceBundle.java:1.25 kaffe/libraries/javalib/java/util/ResourceBundle.java:1.26
--- kaffe/libraries/javalib/java/util/ResourceBundle.java:1.25 Thu Jan 13 05:55:25 2005
+++ kaffe/libraries/javalib/java/util/ResourceBundle.java Thu Feb 10 23:11:14 2005
@@ -215,9 +215,11 @@
if (o != null)
return o;
}
-
- throw new MissingResourceException("Key not found", getClass().getName(),
- key);
+
+ String className = getClass().getName();
+ throw new MissingResourceException("Key '" + key
+ + "'not found in Bundle: "
+ + className, className, key);
}
/**
@@ -533,7 +535,7 @@
catch (IOException ex)
{
MissingResourceException mre = new MissingResourceException
- ("Failed to load bundle", localizedName, "");
+ ("Failed to load bundle: " + localizedName, localizedName, "");
mre.initCause(ex);
throw mre;
}
More information about the kaffe
mailing list