mirror of
https://github.com/corda/corda.git
synced 2025-05-09 20:12:56 +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
|
throws InvocationTargetException, IllegalAccessException
|
||||||
{
|
{
|
||||||
if ((flags & Modifier.STATIC) != 0 || class_.isInstance(instance)) {
|
if ((flags & Modifier.STATIC) != 0 || class_.isInstance(instance)) {
|
||||||
|
if ((flags & Modifier.STATIC) != 0) {
|
||||||
|
instance = null;
|
||||||
|
}
|
||||||
|
|
||||||
if (arguments.length == parameterCount) {
|
if (arguments.length == parameterCount) {
|
||||||
return invoke(this, instance, arguments);
|
return invoke(this, instance, arguments);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user