commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 38021] New: - [resources] ResourceBundleResources Issues
Date Fri, 23 Dec 2005 02:08:07 GMT
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: niallp@apache.org


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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message