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

Commit 6b504a8

Browse files
committed
Fill Exception message when maximum String literal length is exceeded
Gatling compiles Scala classes on the fly with Zinc. Be it a program bug or a user error, some Strings sometimes end up being longer than the maximum String length. It would be nice if we could get an Exception with the proper message. I guess there's the same issue with maximum file size and maximum method size, will check.
1 parent e7851a4 commit 6b504a8

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)