8308192: Error in parsing replay file when staticfield is an array of single dimension

Reviewed-by: thartmann, kvn
This commit is contained in:
Ashutosh Mehra 2023-05-18 19:50:05 +00:00 committed by Vladimir Kozlov
parent 02dc95e6b9
commit d3feedf511

View File

@ -1101,6 +1101,7 @@ class CompileReplay : public StackObj {
value = oopFactory::new_longArray(length, CHECK);
} else if (field_signature[0] == JVM_SIGNATURE_ARRAY &&
field_signature[1] == JVM_SIGNATURE_CLASS) {
parse_klass(CHECK); // eat up the array class name
Klass* kelem = resolve_klass(field_signature + 1, CHECK);
value = oopFactory::new_objArray(kelem, length, CHECK);
} else {