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 28326] New: - Honor resources.setReturnNull(true) in static method Messages.getMessage(Resources , Locale, String)
Date Sat, 10 Apr 2004 08:09:44 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=28326>.
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=28326

Honor resources.setReturnNull(true) in static method Messages.getMessage(Resources , Locale,
String)

           Summary: Honor resources.setReturnNull(true) in static method
                    Messages.getMessage(Resources , Locale, String)
           Product: Commons
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Resources
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: irc@indrajit.com


The helper method Messages.getMessage(Resources , Locale, String) doesn't honor
resources.setReturnNull(true) and _always_ returns message of the form ???key???.
This restricts the client from using any custom fallback mechanism (or any other
processing) in case a particular key is not available.

I suppose it'll be a one liner in Messages.getMessage(Resources , Locale,
String).  We can check if setReturnNull(true) is set in resources and
accordingly return null if the need be.

Let me know if this carries any sense and accordingly I'll submit a patch
against this one.

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