Skip to content

Commit

Permalink
Latest patch from ASM master
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoeller committed Feb 14, 2023
1 parent b233163 commit 33b329e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spring-core/src/main/java/org/springframework/asm/Frame.java
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,12 @@ private static int getAbstractTypeFromDescriptor(
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));
}
}

Expand Down

0 comments on commit 33b329e

Please sign in to comment.