mirror of
https://github.com/corda/corda.git
synced 2025-03-10 22:44:20 +00:00
always pass null instance to native version of Method.invoke when invoking static methods
This commit is contained in:
parent
63fa0668ff
commit
e18ab49f4d
@ -103,6 +103,10 @@ public class Method<T> extends AccessibleObject
|
||||
throws InvocationTargetException, IllegalAccessException
|
||||
{
|
||||
if ((flags & Modifier.STATIC) != 0 || class_.isInstance(instance)) {
|
||||
if ((flags & Modifier.STATIC) != 0) {
|
||||
instance = null;
|
||||
}
|
||||
|
||||
if (arguments.length == parameterCount) {
|
||||
return invoke(this, instance, arguments);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user