diff options
author | Justin Blank <justin.blank@gmail.com> | 2022-04-02 12:21:23 -0400 |
---|---|---|
committer | Justin Blank <justin.blank@gmail.com> | 2022-04-02 12:21:23 -0400 |
commit | e1d376d0958e8cbda99b8608e69b6c89752ba30d (patch) | |
tree | 08b72d146d3c33e7a2052c148be2633fc62d7074 /asm | |
parent | 04f3f8b7dfa7e71efc0044822e6c7f08e5a7a94b (diff) | |
download | ow2-asm-e1d376d0958e8cbda99b8608e69b6c89752ba30d.tar.gz |
Add descriptor to exception in Type#getTypeInternal
Add the incorrect descriptor to the exception for ease of debugging
Diffstat (limited to 'asm')
-rw-r--r-- | asm/src/main/java/org/objectweb/asm/Type.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/asm/src/main/java/org/objectweb/asm/Type.java b/asm/src/main/java/org/objectweb/asm/Type.java index 01c68b46..85a43547 100644 --- a/asm/src/main/java/org/objectweb/asm/Type.java +++ b/asm/src/main/java/org/objectweb/asm/Type.java @@ -440,7 +440,7 @@ public final class Type { case '(': return new Type(METHOD, descriptorBuffer, descriptorBegin, descriptorEnd); default: - throw new IllegalArgumentException(); + throw new IllegalArgumentException("Invalid descriptor: " + descriptorBuffer); } } |