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


[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #17661|0                           |1
        is obsolete|                            |




------- Additional Comments From [EMAIL PROTECTED]  2006-02-14 20:36 -------
Created an attachment (id=17692)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=17692&action=view)
Patch that makes Level dynamically store and lookup Level instances by name,
with test case

I've improvement the patch. This time, the Hashtable is initialized by the
class initializer. However, I moved the ALL_LEVELS class field to class
Priority for this, because the latter is initialized before class Level, but it
constructs Level instances. So the Level constructor gets called before the
class initializer. This was the initial reason I introduced lazy
initialization.

Also, I've extended the test case to test some more situations.

I will think about registering levels explicitly. Perhaps I'll submit another
version of the patch for that.

-- 
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