8016764: JVM does not prohibit invokespecial in c.f.v 51.0 that invokes default interface method in c.f.v 52.0

Check cfv before allowing invokespecial call to default method.

Reviewed-by: kamg, acorn, dholmes
This commit is contained in:
Harold Seigel 2013-08-29 10:33:13 -04:00
parent 026aac8993
commit 1ff22f2ed9

View File

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