mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8270404: Better canonicalization
Reviewed-by: coleenp, rhalade, mschoene
This commit is contained in:
parent
24b588eddb
commit
76373ae3c8
2 changed files with 19 additions and 0 deletions
|
@ -3141,6 +3141,13 @@ u2 ClassFileParser::parse_classfile_inner_classes_attribute(const ClassFileStrea
|
|||
valid_klass_reference_at(outer_class_info_index),
|
||||
"outer_class_info_index %u has bad constant type in class file %s",
|
||||
outer_class_info_index, CHECK_0);
|
||||
|
||||
if (outer_class_info_index != 0) {
|
||||
const Symbol* const outer_class_name = cp->klass_name_at(outer_class_info_index);
|
||||
char* bytes = (char*)outer_class_name->bytes();
|
||||
guarantee_property(bytes[0] != JVM_SIGNATURE_ARRAY,
|
||||
"Outer class is an array class in class file %s", CHECK_0);
|
||||
}
|
||||
// Inner class name
|
||||
const u2 inner_name_index = cfs->get_u2_fast();
|
||||
check_property(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue