mirror of
https://github.com/corda/corda.git
synced 2025-06-11 03:41:41 +00:00
add test for d1bdf2f (Class.getMethod bug)
I meant to include this in the original commit, but forgot.
This commit is contained in:
parent
d1bdf2f8ef
commit
4ce545c4fd
@ -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…
x
Reference in New Issue
Block a user