This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-bcel.git
The following commit(s) were added to refs/heads/master by this push: new d002e44d Fix exception message per Mark Thomas' patch d002e44d is described below commit d002e44d8d4a875fb13893ec92dd4d53a342a61a Author: Gary David Gregory (Code signing key) <ggreg...@apache.org> AuthorDate: Mon Nov 21 09:09:17 2022 -0500 Fix exception message per Mark Thomas' patch --- src/main/java/org/apache/bcel/util/Args.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/bcel/util/Args.java b/src/main/java/org/apache/bcel/util/Args.java index 642f6508..0ff13f96 100644 --- a/src/main/java/org/apache/bcel/util/Args.java +++ b/src/main/java/org/apache/bcel/util/Args.java @@ -121,7 +121,7 @@ public class Args { */ public static int requireU4(final int value, final String message) { if (value < 0) { - throw new ClassFormatException(String.format("%s [Value out of range (0 - %,d) for type u4: %,d]", message, Integer.MAX_VALUE, value)); + throw new ClassFormatException(String.format("%s [Value out of range (0 - %,d) for type u4: %,d]", message, Integer.MAX_VALUE, value & 0xFFFFFFFFL)); } return value; }