Skip to content

Commit 580fd4f

Browse files
committed
Exception message in Args.requireU4() refers to the wrong data type
1 parent 119f8c5 commit 580fd4f

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/changes/changes.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ The <action> type attribute can be add,update,fix,remove.
6565
<action type="fix" dev="ggregory" due-to="Gary Gregory">Fix Apache RAT plugin console warnings.</action>
6666
<action type="fix" dev="ggregory" due-to="Gary Gregory">Fix malformed Javadoc comments.</action>
6767
<action type="fix" dev="ggregory" due-to="Gary Gregory">Make the build reproducible on the Azul JDK.</action>
68+
<action type="fix" dev="ggregory" due-to="Gary Gregory">Exception message in Args.requireU4() refers to the wrong data type.</action>
6869
<!-- ADD -->
6970
<action type="add" dev="ggregory" due-to="Gary Gregory">Add Const.MAJOR_26.</action>
7071
<action type="add" dev="ggregory" due-to="Gary Gregory">Add Const.MINOR_26.</action>

src/main/java/org/apache/bcel/util/Args.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public static int requireU4(final int value, final int min, final String message
128128
}
129129
if (value < min) {
130130
throw new ClassFormatException(
131-
String.format("%s [Value out of range (%,d - %,d) for type u2: %,d]", message, min, Integer.MAX_VALUE, value & 0xFFFFFFFFL));
131+
String.format("%s [Value out of range (%,d - %,d) for type u4: %,d]", message, min, Integer.MAX_VALUE, value & 0xFFFFFFFFL));
132132
}
133133
return value;
134134
}

0 commit comments

Comments
 (0)