This is the mail archive of the
java-patches@sources.redhat.com
mailing list for the Java project.
Patch: ResourceBundle fix
- To: Java Patch List <java-patches at sourceware dot cygnus dot com>
- Subject: Patch: ResourceBundle fix
- From: Tom Tromey <tromey at redhat dot com>
- Date: 15 Dec 2000 09:03:38 -0700
- Reply-To: tromey at redhat dot com
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
{