mirror of
https://github.com/corda/corda.git
synced 2025-01-22 12:28:11 +00:00
Merge pull request #152 from dicej/getMethod-aioobe
add test for d1bdf2f
(Class.getMethod bug)
This commit is contained in:
commit
ade2e8ef2b
@ -1,5 +1,6 @@
|
|||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
|
import java.lang.reflect.Modifier;
|
||||||
import java.lang.reflect.ParameterizedType;
|
import java.lang.reflect.ParameterizedType;
|
||||||
import java.lang.reflect.Type;
|
import java.lang.reflect.Type;
|
||||||
import java.lang.reflect.InvocationTargetException;
|
import java.lang.reflect.InvocationTargetException;
|
||||||
@ -232,6 +233,9 @@ public class Reflection {
|
|||||||
expect(t.getClass() == InvocationTargetException.class);
|
expect(t.getClass() == InvocationTargetException.class);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
expect((Foo.class.getMethod("toString").getModifiers()
|
||||||
|
& Modifier.PUBLIC) != 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user