diff --git a/src/hotspot/share/classfile/classFileParser.cpp b/src/hotspot/share/classfile/classFileParser.cpp index 02cd8ec852d..16b11ec4fcb 100644 --- a/src/hotspot/share/classfile/classFileParser.cpp +++ b/src/hotspot/share/classfile/classFileParser.cpp @@ -4324,6 +4324,7 @@ void ClassFileParser::check_super_interface_access(const InstanceKlass* this_kla (same_module) ? this_klass->joint_in_module_of_loader(k) : this_klass->class_in_module_of_loader(), (same_module) ? "" : "; ", (same_module) ? "" : k->class_in_module_of_loader()); + return; } else { // Add additional message content. Exceptions::fthrow( @@ -4331,6 +4332,7 @@ void ClassFileParser::check_super_interface_access(const InstanceKlass* this_kla vmSymbols::java_lang_IllegalAccessError(), "superinterface check failed: %s", msg); + return; } } }