Skip to content

Commit d4c904d

Browse files
committed
8317294: Classloading throws exceptions over already pending exceptions
Reviewed-by: dholmes, coleenp
1 parent 48f1a92 commit d4c904d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/hotspot/share/classfile/classFileParser.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4324,13 +4324,15 @@ void ClassFileParser::check_super_interface_access(const InstanceKlass* this_kla
43244324
(same_module) ? this_klass->joint_in_module_of_loader(k) : this_klass->class_in_module_of_loader(),
43254325
(same_module) ? "" : "; ",
43264326
(same_module) ? "" : k->class_in_module_of_loader());
4327+
return;
43274328
} else {
43284329
// Add additional message content.
43294330
Exceptions::fthrow(
43304331
THREAD_AND_LOCATION,
43314332
vmSymbols::java_lang_IllegalAccessError(),
43324333
"superinterface check failed: %s",
43334334
msg);
4335+
return;
43344336
}
43354337
}
43364338
}

0 commit comments

Comments
 (0)