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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
