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 12247] New: - MethodUtils.getMatchingAccessibleMethod throws NullPointerException when parameterTypes is null
Date Tue, 03 Sep 2002 07:44:39 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12247>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12247

MethodUtils.getMatchingAccessibleMethod throws NullPointerException when parameterTypes is
null

           Summary: MethodUtils.getMatchingAccessibleMethod throws
                    NullPointerException when parameterTypes is null
           Product: Commons
           Version: 1.0 Beta 1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Bean Utilities
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: gillesGaillard@compuserve.com


In release 1.4 and 1.4.1 invoking invokeMethod with the Class[] parameter null 
leads to a NullPointerException in getMatchingAccessibleMethod. This is not 
coherent with the java.lang.Class.getMethod documentation where null Class[] 
parameter is considered like an empty one.

Workaroud : pass empty array instead of null

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message