This is the mail archive of the java-patches@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch: ResourceBundle fix


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 
 		{

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]