You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2006/02/03 15:29:52 UTC
DO NOT REPLY [Bug 38494] New: - [Shale] Messages should log error if resourcebundle not found
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38494>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38494
Summary: [Shale] Messages should log error if resourcebundle not
found
Product: Struts
Version: Nightly Build
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: Shale
AssignedTo: dev@struts.apache.org
ReportedBy: hermod.opstvedt@dnb.no
private ResourceBundle getBundle(Locale locale) {
assert locale != null;
ResourceBundle rb = null;
ClassLoader rbcl = cl;
if (cl == null) {
cl = Thread.currentThread().getContextClassLoader();
}
synchronized (bundles) {
rb = (ResourceBundle) bundles.get(locale);
if (rb == null) {
try {
rb = ResourceBundle.getBundle(name, locale, cl);
} catch (MissingResourceException e) {
rb = ResourceBundle.getBundle(name, defaultLocale, cl);
}
- bundles.put(locale, rb);
+ if(rb!=null) {
+ bundles.put(locale, rb);
+ }
+ else
+ {
+ Log.warn("Resourcebundle: " + name + " could not be found");
+ }
}
return rb;
}
}
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
DO NOT REPLY [Bug 38494] - [Shale] Messages should log error if resourcebundle not found
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38494>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38494
craig.mcclanahan@sun.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From craig.mcclanahan@sun.com 2006-02-05 04:24 -------
Yep ... we need this one too. Added in nightly build 20060205.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org