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 27877] New: - [lang] Make ClassUtils methods null-safe and not throw an IAE.
Date Tue, 23 Mar 2004 18:17:01 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=27877>.
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=27877

[lang] Make ClassUtils methods null-safe and not throw an IAE.

           Summary: [lang] Make ClassUtils methods null-safe and not throw
                    an IAE.
           Product: Commons
           Version: 2.0 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Lang
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: ggregory@seagullsw.com


A number of ClassUtils methods that a designed to return Strings throw a new
IllegalArgumentException when the input arg is null. I would like to change
these methods to return "" (or null). The methods are:

String getShortClassName(Class cls)
String getShortClassName(String className)
String getPackageName(Class cls)
String getPackageName(String className)

Thoughts for or against?

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