INVOKESTATIC correction
This commit is contained in:
parent
7dbc651a51
commit
cd53e4023e
@ -940,9 +940,9 @@ DEFOP(INVOKESTATIC)
|
|||||||
LOG("Calling " + className + " " + method.name_ref.str + method.descriptor_ref.str)
|
LOG("Calling " + className + " " + method.name_ref.str + method.descriptor_ref.str)
|
||||||
LOG("!! NATIVE !!")
|
LOG("!! NATIVE !!")
|
||||||
if (xl.jvm.internalJNITable[className] && methodId in xl.jvm.internalJNITable[className]){
|
if (xl.jvm.internalJNITable[className] && methodId in xl.jvm.internalJNITable[className]){
|
||||||
result = xl.jvm.internalJNITable[className][methodId].apply(cl,args);
|
result = {return_object: xl.jvm.internalJNITable[className][methodId].apply(cl,args)};
|
||||||
}else if (xl.jvm.JNITable[className] && methodId in xl.jvm.JNITable[className]){
|
}else if (xl.jvm.JNITable[className] && methodId in xl.jvm.JNITable[className]){
|
||||||
result = xl.jvm.JNITable[className][methodId].apply(cl,args)
|
result = {return_object: xl.jvm.JNITable[className][methodId].apply(cl,args)};s
|
||||||
}else{
|
}else{
|
||||||
PANIC(methodId + " declared as native but not mapped");
|
PANIC(methodId + " declared as native but not mapped");
|
||||||
}
|
}
|
||||||
@ -950,8 +950,8 @@ DEFOP(INVOKESTATIC)
|
|||||||
}else{
|
}else{
|
||||||
result = method.invoke(args,cl);
|
result = method.invoke(args,cl);
|
||||||
}
|
}
|
||||||
if (result != undefined){
|
if (result != undefined && result.return_object!= undefined){
|
||||||
OPPUSH(result);
|
OPPUSH(result.return_object);
|
||||||
}
|
}
|
||||||
ENDDEF
|
ENDDEF
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user