----- Original Message ----- From: "Mark Thomas" <[EMAIL PROTECTED]> To: "Tomcat-Dev" <[EMAIL PROTECTED]> Sent: Sunday, January 25, 2004 2:15 PM Subject: [PROPOSED PATCH] Bug 13307
> All, > > The patch below has been proposed for bug 13307 > (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13307). > > Since it involves class loaders and anything that involves class loaders is > still a bit of a black art to me, I would be grateful for review of this > proposed patch. > Naming is in the 'server' CL, so the patch looks Ok. > Thanks, > > Mark > > > Index: catalina/src/share/org/apache/naming/StringManager.java > =================================================================== > RCS file: > /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/naming/Strin gMan > ager.java,v > retrieving revision 1.2 > diff -u -r1.2 StringManager.java > --- catalina/src/share/org/apache/naming/StringManager.java 2 Sep 2003 > 21:21:59 -0000 1.2 > +++ catalina/src/share/org/apache/naming/StringManager.java 25 Jan 2004 > 22:06:45 -0000 > @@ -66,6 +66,7 @@ > > import java.text.MessageFormat; > import java.util.Hashtable; > +import java.util.Locale; > import java.util.MissingResourceException; > import java.util.ResourceBundle; > > @@ -110,8 +111,10 @@ > */ > > private StringManager(String packageName) { > - String bundleName = packageName + ".LocalStrings"; > - bundle = ResourceBundle.getBundle(bundleName); > + String bundleName = packageName + ".LocalStrings"; > + bundle = ResourceBundle.getBundle(bundleName, > + Locale.getDefault(), > + getClass().getClassLoader()); > } > > /** > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] >
This message is intended only for the use of the person(s) listed above as the intended recipient(s), and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not an intended recipient, you may not read, copy, or distribute this message or any attachment. If you received this communication in error, please notify us immediately by e-mail and then delete all copies of this message and any attachments. In addition you should be aware that ordinary (unencrypted) e-mail sent through the Internet is not secure. Do not send confidential or sensitive information, such as social security numbers, account numbers, personal identification numbers and passwords, to us via ordinary (unencrypted) e-mail.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]