Skip to content
This repository was archived by the owner on Feb 23, 2018. It is now read-only.

Commit 787a147

Browse files
authored
Merge pull request #10 from slandelle/patch-1
Fill Exception message when maximum String literal length is exceeded
2 parents e5c39e5 + 6b504a8 commit 787a147

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/scala/tools/asm/ByteVector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public ByteVector putLong(final long l) {
210210
public ByteVector putUTF8(final String s) {
211211
int charLength = s.length();
212212
if (charLength > 65535) {
213-
throw new IllegalArgumentException();
213+
throw new IllegalArgumentException("Maximum String literal length exceeded");
214214
}
215215
int len = length;
216216
if (len + 2 + charLength > data.length) {

0 commit comments

Comments
 (0)