8194985: JavaAdapterBytecodeGenerator passes invalid type descriptor to ASM
Reviewed-by: sundar, attila
This commit is contained in:
parent
4c078f48da
commit
07c484a8a9
@ -1083,7 +1083,7 @@ final class JavaAdapterBytecodeGenerator {
|
||||
|
||||
// Simply invoke super.finalize()
|
||||
mv.visitVarInsn(ALOAD, 0);
|
||||
mv.checkcast(Type.getType(generatedClassName));
|
||||
mv.checkcast(Type.getType('L' + generatedClassName + ';'));
|
||||
mv.invokespecial(superClassName, "finalize", VOID_METHOD_DESCRIPTOR, false);
|
||||
|
||||
mv.visitInsn(RETURN);
|
||||
|
@ -133,7 +133,7 @@ public class ScriptEngineSecurityTest {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// This also covers overriding finalizer in JavaAdapter such as JDK-8194985
|
||||
@Test
|
||||
public void securitySystemExitFromFinalizerThread() throws ScriptException {
|
||||
if (System.getSecurityManager() == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user