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=35052>. 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=35052 ------- Additional Comments From [EMAIL PROTECTED] 2005-07-07 07:19 ------- I can't see any problem with the use of intern here either. Class CategoryKey is used in only one way: as the key to the hashtable of named Logger objects maintained by a Hierarchy. And under normal patterns of use, even a very large program is only likely to have a few hundreds of differently-named Logger objects. And as mark said, calling String.intern("foo") any number of times still creates just one entry in the interned-string table. That's the whole point of intern! Are you perhaps dynamically generating category names, eg by Logger l = Logger.getLogger("some.category." + currentDateTime); This would cause large numbers of distinctly-named Logger objects to be created, and of course all those distinct names *would* clutter the interned-string table. However it's a pretty odd way to use log4j.. -- 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]