Fixed generateSuper when override has void return type.

This commit is contained in:
beard%netscape.com 1999-09-25 01:37:32 +00:00
parent ecb52b2b41
commit 38ef2b2d81
2 changed files with 4 additions and 0 deletions

View File

@ -694,6 +694,8 @@ public class JavaAdapter extends ScriptableObject {
Class retType = returnType;
if (!retType.equals(Void.TYPE)) {
generatePopResult(cfw, retType);
} else {
cfw.add(ByteCode.RETURN);
}
cfw.stopMethod((short)(paramOffset + 1), null);
}

View File

@ -694,6 +694,8 @@ public class JavaAdapter extends ScriptableObject {
Class retType = returnType;
if (!retType.equals(Void.TYPE)) {
generatePopResult(cfw, retType);
} else {
cfw.add(ByteCode.RETURN);
}
cfw.stopMethod((short)(paramOffset + 1), null);
}