Patch: ResourceBundle fix
Tom Tromey
tromey@redhat.com
Fri Dec 15 07:49:00 GMT 2000
My ResourceBundle patch last night was missing a piece. Here it is.
This change is "incorrect" in that the new Class.forName() call is
missing an argument. That's a bug in Class.forName that I didn't want
to fix right away.
2000-12-15 Tom Tromey <tromey@redhat.com>
* java/util/ResourceBundle.java (trySomeGetBundle): Pass class
loader to Class.forName.
Tom
Index: java/util/ResourceBundle.java
===================================================================
RCS file: /cvs/gcc/egcs/libjava/java/util/ResourceBundle.java,v
retrieving revision 1.10
diff -u -r1.10 ResourceBundle.java
--- ResourceBundle.java 2000/12/15 06:51:07 1.10
+++ ResourceBundle.java 2000/12/15 15:48:32
@@ -83,7 +83,9 @@
{
try
{
- rbc = Class.forName(bundleName);
+ // This call is wrong by the spec, but it will have to
+ // do until our Class.forName is fixed.
+ rbc = Class.forName(bundleName, loader);
r = null;
try
{
More information about the Java-patches
mailing list