Skip to content

Commit

Permalink
8304931: vm/concepts/methods/methods001/methods00101m1/methods00101m1…
Browse files Browse the repository at this point in the history
… failures with already pending exception

Reviewed-by: coleenp, dholmes
  • Loading branch information
Matias Saavedra Silva committed Mar 27, 2023
1 parent 63ce88b commit 6aec6f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hotspot/share/classfile/classFileParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,7 @@ void ClassFileParser::parse_interfaces(const ClassFileStream* const stream,
if (!interface_names->put(interface_name, 0)) {
classfile_parse_error("Duplicate interface name \"%s\" in class file %s",
interface_name->as_C_string(), THREAD);
return;
}
}
}
Expand Down Expand Up @@ -1594,6 +1595,7 @@ void ClassFileParser::parse_fields(const ClassFileStream* const cfs,
if(!names_and_sigs->put(name_and_sig, 0)) {
classfile_parse_error("Duplicate field name \"%s\" with signature \"%s\" in class file %s",
name_and_sig._name->as_C_string(), name_and_sig._sig->as_klass_external_name(), THREAD);
return;
}
}
}
Expand Down Expand Up @@ -2833,6 +2835,7 @@ void ClassFileParser::parse_methods(const ClassFileStream* const cfs,
if(!names_and_sigs->put(name_and_sig, 0)) {
classfile_parse_error("Duplicate method name \"%s\" with signature \"%s\" in class file %s",
name_and_sig._name->as_C_string(), name_and_sig._sig->as_klass_external_name(), THREAD);
return;
}
}
}
Expand Down

1 comment on commit 6aec6f3

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.