From 270574545197718447d3ace762a7be407a6991ab Mon Sep 17 00:00:00 2001 From: hseigel Date: Thu, 29 Aug 2013 10:33:13 -0400 Subject: [PATCH] 8016764: JVM does not prohibit invokespecial in c.f.v 51.0 that invokes default interface method in c.f.v 52.0 Summary: Check cfv before allowing invokespecial call to default method. Reviewed-by: kamg, acorn, dholmes --- src/share/vm/classfile/verifier.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/share/vm/classfile/verifier.cpp b/src/share/vm/classfile/verifier.cpp index 015b8093d..68e634f3a 100644 --- a/src/share/vm/classfile/verifier.cpp +++ b/src/share/vm/classfile/verifier.cpp @@ -2318,9 +2318,6 @@ void ClassVerifier::verify_invoke_instructions( types = 1 << JVM_CONSTANT_InvokeDynamic; break; case Bytecodes::_invokespecial: - types = (1 << JVM_CONSTANT_InterfaceMethodref) | - (1 << JVM_CONSTANT_Methodref); - break; case Bytecodes::_invokestatic: types = (_klass->major_version() < STATIC_METHOD_IN_INTERFACE_MAJOR_VERSION) ? (1 << JVM_CONSTANT_Methodref) : -- GitLab