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 580fd4ff Exception message in Args.requireU4() refers to the wrong 
data type
580fd4ff is described below

commit 580fd4ff86e954db8a696c6d8e714df1e2650616
Author: Gary Gregory <[email protected]>
AuthorDate: Mon Jan 12 08:33:34 2026 -0500

    Exception message in Args.requireU4() refers to the wrong data type
---
 src/changes/changes.xml                      | 1 +
 src/main/java/org/apache/bcel/util/Args.java | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index cadd4ae7..8128a5dd 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -65,6 +65,7 @@ The <action> type attribute can be add,update,fix,remove.
       <action                  type="fix" dev="ggregory" due-to="Gary 
Gregory">Fix Apache RAT plugin console warnings.</action>
       <action                  type="fix" dev="ggregory" due-to="Gary 
Gregory">Fix malformed Javadoc comments.</action>
       <action                  type="fix" dev="ggregory" due-to="Gary 
Gregory">Make the build reproducible on the Azul JDK.</action>
+      <action                  type="fix" dev="ggregory" due-to="Gary 
Gregory">Exception message in Args.requireU4() refers to the wrong data 
type.</action>
       <!-- ADD -->
       <action                  type="add" dev="ggregory" due-to="Gary 
Gregory">Add Const.MAJOR_26.</action>
       <action                  type="add" dev="ggregory" due-to="Gary 
Gregory">Add Const.MINOR_26.</action>
diff --git a/src/main/java/org/apache/bcel/util/Args.java 
b/src/main/java/org/apache/bcel/util/Args.java
index 93c70e73..ba46952f 100644
--- a/src/main/java/org/apache/bcel/util/Args.java
+++ b/src/main/java/org/apache/bcel/util/Args.java
@@ -128,7 +128,7 @@ public class Args {
         }
         if (value < min) {
             throw new ClassFormatException(
-                    String.format("%s [Value out of range (%,d - %,d) for type 
u2: %,d]", message, min, Integer.MAX_VALUE, value & 0xFFFFFFFFL));
+                    String.format("%s [Value out of range (%,d - %,d) for type 
u4: %,d]", message, min, Integer.MAX_VALUE, value & 0xFFFFFFFFL));
         }
         return value;
     }

Reply via email to