Skip to content

Commit

Permalink
Fix MAX_INPUT_SIZE handling to throw EOF
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-bell committed Jul 30, 2024
1 parent bfd6021 commit 617586d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1216,7 +1216,7 @@ public TypedGeneratedValue getOrGenerateFresh(Integer key, TypedGeneratedValue.T

// Don't generate over the limit
if (requested >= MAX_INPUT_SIZE) {
throw new IllegalStateException("Input size limit exceeded");
throw new IllegalStateException(new EOFException("Input size limit exceeded"));
}

// If it exists in the list, return it
Expand Down

0 comments on commit 617586d

Please sign in to comment.