8194985: JavaAdapterBytecodeGenerator passes invalid type descriptor to ASM

Reviewed-by: sundar, attila
This commit is contained in:
Hannes Wallnöfer 2018-01-15 11:07:41 +01:00
parent 4c078f48da
commit 07c484a8a9
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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) {