提交 27057454 编写于 作者: H hseigel

8016764: JVM does not prohibit invokespecial in c.f.v 51.0 that invokes...

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
上级 4e4f75ec
...@@ -2318,9 +2318,6 @@ void ClassVerifier::verify_invoke_instructions( ...@@ -2318,9 +2318,6 @@ void ClassVerifier::verify_invoke_instructions(
types = 1 << JVM_CONSTANT_InvokeDynamic; types = 1 << JVM_CONSTANT_InvokeDynamic;
break; break;
case Bytecodes::_invokespecial: case Bytecodes::_invokespecial:
types = (1 << JVM_CONSTANT_InterfaceMethodref) |
(1 << JVM_CONSTANT_Methodref);
break;
case Bytecodes::_invokestatic: case Bytecodes::_invokestatic:
types = (_klass->major_version() < STATIC_METHOD_IN_INTERFACE_MAJOR_VERSION) ? types = (_klass->major_version() < STATIC_METHOD_IN_INTERFACE_MAJOR_VERSION) ?
(1 << JVM_CONSTANT_Methodref) : (1 << JVM_CONSTANT_Methodref) :
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册