Latest patch from ASM master

See gh-29910
This commit is contained in:
Juergen Hoeller 2023-02-14 10:58:03 +01:00
parent b23316302d
commit 33b329e13a
1 changed files with 3 additions and 2 deletions

View File

@ -367,11 +367,12 @@ class Frame {
typeValue = REFERENCE_KIND | symbolTable.addType(internalName);
break;
default:
throw new IllegalArgumentException();
throw new IllegalArgumentException(
"Invalid descriptor fragment: " + buffer.substring(elementDescriptorOffset));
}
return ((elementDescriptorOffset - offset) << DIM_SHIFT) | typeValue;
default:
throw new IllegalArgumentException();
throw new IllegalArgumentException("Invalid descriptor: " + buffer.substring(offset));
}
}