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=38021>.
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=38021

           Summary: [resources] ResourceBundleResources Issues
           Product: Commons
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: Resources
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


IMO the java.util.ResourceBundle wrapper implementation of Resources (i.e. 
ResourceBundleResources) is flawed for three reasons:

A) Commons Resources was created primarily to overcome two issues with 
java.util.ResourceBundle - 1) ResourceBundle isn't serializable and 2) 
ResourceBundle assumes all keys have to be present for each Locale. The 
ResourceBundleResources implementation has both of these issues.

B) java.util.ResourceBundle already caches ResourceBundle instances and 
therefore the duplication of this behaviour is unnecessary.

C) Caching ResourceBundle instances by ClassLoader is likely to cause memory 
leaks as seen in other Commons components (e.g. see Bug 35263)

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to