提交 f271afb7 编写于 作者: A asaha

Merge

...@@ -2315,7 +2315,7 @@ void ClassVerifier::verify_invoke_init( ...@@ -2315,7 +2315,7 @@ void ClassVerifier::verify_invoke_init(
instanceKlassHandle mh(THREAD, m->method_holder()); instanceKlassHandle mh(THREAD, m->method_holder());
if (m->is_protected() && !mh->is_same_class_package(_klass())) { if (m->is_protected() && !mh->is_same_class_package(_klass())) {
bool assignable = current_type().is_assignable_from( bool assignable = current_type().is_assignable_from(
objectref_type, this, true, CHECK_VERIFY(this)); objectref_type, this, CHECK_VERIFY(this));
if (!assignable) { if (!assignable) {
verify_error(ErrorContext::bad_type(bci, verify_error(ErrorContext::bad_type(bci,
TypeOrigin::cp(new_class_index, objectref_type), TypeOrigin::cp(new_class_index, objectref_type),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册