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 2006/01/06 01:59:01 UTC

DO NOT REPLY [Bug 38155] New: - [resources] GLOBAL_MESSAGE_KEY implementation and documentation is inconsistent

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

           Summary: [resources] GLOBAL_MESSAGE_KEY implementation and
                    documentation is inconsistent
           Product: Commons
           Version: unspecified
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Resources
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: chris@absolutegiganten.org


globalMessageKey is a private member of MessageList. GLOBAL_MESSAGE_KEY is the
final static default value of globalMessageKey. Now the javadoc for e.g.
add(property, message) tells us we can pass MessageList.GLOBAL_MESSAGE_KEY in as
property. But GLOBAL_MESSAGE_KEY isn't always the global message key, it'd be
correct to pass in msgList.getGlobalMessageKey() as "global". The javadoc uses
MessageList.GLOBAL_MESSAGE_KEY inconsistently in several places in MessageList
and BasicMessageList. So there appears to be some mixup in implementation and
javadoc between a global static message key and a per instance global message
key. Actually I've got no idea why a global key is settable per instance.
Couldn't we just stay with a static global message key ?

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