You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2005/12/23 03:08:07 UTC
DO NOT REPLY [Bug 38021] New: - [resources] ResourceBundleResources Issues
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
DO NOT REPLY [Bug 38021] - [resources] ResourceBundleResources Issues
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=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
niallp@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From niallp@apache.org 2005-12-23 04:39 -------
Closing as FIXED.
http://svn.apache.org/viewcvs.cgi?rev=358692&view=rev
--
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
DO NOT REPLY [Bug 38021] - [resources] ResourceBundleResources Issues
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=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
------- Additional Comments From niallp@apache.org 2005-12-23 03:11 -------
Created an attachment (id=17268)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=17268&action=view)
Refactoring of ResourceBundleResources
The attached patch removes the caching of ResourceBundle instances resolving
all but one of the above issues. The only thing this doesn't resolve is the
issue with all keys having to be present for each Locale.
--
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