tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <wbar...@wilshire.com>
Subject Re: [PROPOSED PATCH] Bug 13307
Date Sun, 25 Jan 2004 23:34:13 GMT

----- Original Message ----- 
From: "Mark Thomas" <markt@apache.org>
To: "Tomcat-Dev" <tomcat-dev@jakarta.apache.org>
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: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>


Mime
View raw message