mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
ignore instance variable for static method invocations
This commit is contained in:
parent
b4c3eea0f1
commit
e6b6edfc25
@ -4706,6 +4706,10 @@ jvmInvokeMethod(Thread* t, uintptr_t* arguments)
|
||||
(t, jclassVmClass(t, jmethodClazz(t, *method))),
|
||||
jmethodSlot(t, *method));
|
||||
|
||||
if (methodFlags(t, vmMethod) & ACC_STATIC) {
|
||||
instance = 0;
|
||||
}
|
||||
|
||||
if (instance and not instanceOf(t, methodClass(t, vmMethod), *instance)) {
|
||||
throwNew(t, Machine::IllegalArgumentExceptionType);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user