Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ignore instance variable for static method invocations

  • Loading branch information...
commit e6b6edfc254ba2635a9116101d1e6e499aa57d81 1 parent b4c3eea
@dicej dicej authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/classpath-openjdk.cpp
View
4 src/classpath-openjdk.cpp
@@ -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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.