Merge pull request #152 from dicej/getMethod-aioobe

add test for d1bdf2f (Class.getMethod bug)
This commit is contained in:
Joshua Warner 2014-01-03 14:17:28 -08:00
commit ade2e8ef2b

View File

@ -1,5 +1,6 @@
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.lang.reflect.InvocationTargetException;
@ -232,6 +233,9 @@ public class Reflection {
expect(t.getClass() == InvocationTargetException.class);
}
}
expect((Foo.class.getMethod("toString").getModifiers()
& Modifier.PUBLIC) != 0);
}
}