handle null parameter types in various class methods

This commit is contained in:
Josh warner 2009-06-05 14:28:55 -06:00
parent ed4c24c7f6
commit bcad89dc17

View File

@ -168,6 +168,8 @@ public final class Class <T> {
private Method findMethod(String name, Class[] parameterTypes) {
if (methodTable != null) {
if (parameterTypes == null)
parameterTypes = new Class[0];
for (int i = 0; i < methodTable.length; ++i) {
if (methodTable[i].getName().equals(name)
&& match(parameterTypes, methodTable[i].getParameterTypes()))