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

Fill Exception message when maximum String literal length is exceeded #10

Merged
merged 1 commit into from
Feb 12, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/scala/tools/asm/ByteVector.java
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public ByteVector putLong(final long l) {
public ByteVector putUTF8(final String s) {
int charLength = s.length();
if (charLength > 65535) {
throw new IllegalArgumentException();
throw new IllegalArgumentException("Maximum String literal length exceeded");
}
int len = length;
if (len + 2 + charLength > data.length) {
Expand Down