This is an automated email from the ASF dual-hosted git repository.

markt-asf pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/10.1.x by this push:
     new 0c4a542e45 Update the internal fork of Apache Commons BCEL to 6.13.0
0c4a542e45 is described below

commit 0c4a542e45f81d386250165ba7ed27ad65c8d058
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Sep 25 17:47:53 2026 +0100

    Update the internal fork of Apache Commons BCEL to 6.13.0
---
 java/org/apache/tomcat/util/bcel/Const.java        | 38 +++++++++++++++++++++-
 .../bcel/classfile/AnnotationElementValue.java     |  2 +-
 .../util/bcel/classfile/AnnotationEntry.java       |  2 +-
 .../util/bcel/classfile/ClassFormatException.java  |  2 +-
 .../tomcat/util/bcel/classfile/ClassParser.java    |  4 +--
 .../tomcat/util/bcel/classfile/ElementValue.java   | 16 ++-------
 webapps/docs/changelog.xml                         |  7 ++++
 7 files changed, 52 insertions(+), 19 deletions(-)

diff --git a/java/org/apache/tomcat/util/bcel/Const.java 
b/java/org/apache/tomcat/util/bcel/Const.java
index b8169e256f..05c441de71 100644
--- a/java/org/apache/tomcat/util/bcel/Const.java
+++ b/java/org/apache/tomcat/util/bcel/Const.java
@@ -319,12 +319,48 @@ public final class Const {
      */
     public static final short MAJOR_26 = 70;
 
+    /**
+     * Minor version number of class files for Java 27: {@value}.
+     *
+     * @see #MAJOR_27
+     *
+     * @since 6.13.0
+     */
+    public static final short MINOR_27 = 0;
+
+    /**
+     * Major version number of class files for Java 27: {@value}.
+     *
+     * @see #MINOR_27
+     *
+     * @since 6.13.0
+     */
+    public static final short MAJOR_27 = 71;
+
+    /**
+     * Minor version number of class files for Java 28: {@value}.
+     *
+     * @see #MAJOR_28
+     *
+     * @since 6.13.0
+     */
+    public static final short MINOR_28 = 0;
+
+    /**
+     * Major version number of class files for Java 28: {@value}.
+     *
+     * @see #MINOR_28
+     *
+     * @since 6.13.0
+     */
+    public static final short MAJOR_28 = 72;
+
     /**
      * Get the CONSTANT_NAMES entry at the given index.
      *
      * @param index index into {@code CONSTANT_NAMES}.
      *
-     * @return the CONSTANT_NAMES entry at the given index
+     * @return the CONSTANT_NAMES entry at the given index.
      */
     public static String getConstantName(final int index) {
         return CONSTANT_NAMES[index];
diff --git 
a/java/org/apache/tomcat/util/bcel/classfile/AnnotationElementValue.java 
b/java/org/apache/tomcat/util/bcel/classfile/AnnotationElementValue.java
index ebaef47f83..a1f85c9a36 100644
--- a/java/org/apache/tomcat/util/bcel/classfile/AnnotationElementValue.java
+++ b/java/org/apache/tomcat/util/bcel/classfile/AnnotationElementValue.java
@@ -34,7 +34,7 @@ public class AnnotationElementValue extends ElementValue {
     /**
      * Gets the annotation entry.
      *
-     * @return the annotation entry.
+     * @return The annotation entry.
      */
     public AnnotationEntry getAnnotationEntry() {
         return annotationEntry;
diff --git a/java/org/apache/tomcat/util/bcel/classfile/AnnotationEntry.java 
b/java/org/apache/tomcat/util/bcel/classfile/AnnotationEntry.java
index adf07110b6..a8368948e3 100644
--- a/java/org/apache/tomcat/util/bcel/classfile/AnnotationEntry.java
+++ b/java/org/apache/tomcat/util/bcel/classfile/AnnotationEntry.java
@@ -57,7 +57,7 @@ public class AnnotationEntry {
     /**
      * Gets the annotation type name.
      *
-     * @return the annotation type name.
+     * @return The annotation type name.
      */
     public String getAnnotationType() {
         return constantPool.getConstantUtf8(typeIndex).getBytes();
diff --git 
a/java/org/apache/tomcat/util/bcel/classfile/ClassFormatException.java 
b/java/org/apache/tomcat/util/bcel/classfile/ClassFormatException.java
index 006090f50d..d0328da501 100644
--- a/java/org/apache/tomcat/util/bcel/classfile/ClassFormatException.java
+++ b/java/org/apache/tomcat/util/bcel/classfile/ClassFormatException.java
@@ -34,7 +34,7 @@ public class ClassFormatException extends RuntimeException {
      * Constructs a new instance with the specified detail message. The cause 
is not initialized, and may subsequently be initialized by a call to
      * {@link #initCause}.
      *
-     * @param message the detail message. The detail message is saved for 
later retrieval by the {@link #getMessage()} method.
+     * @param message The detail message. The detail message is saved for 
later retrieval by the {@link #getMessage()} method.
      */
     public ClassFormatException(final String message) {
         super(message);
diff --git a/java/org/apache/tomcat/util/bcel/classfile/ClassParser.java 
b/java/org/apache/tomcat/util/bcel/classfile/ClassParser.java
index f41e3d9285..77220443cc 100644
--- a/java/org/apache/tomcat/util/bcel/classfile/ClassParser.java
+++ b/java/org/apache/tomcat/util/bcel/classfile/ClassParser.java
@@ -140,8 +140,8 @@ public final class ClassParser {
     /**
      * Reads information about the class and its super class.
      *
-     * @throws IOException if an I/O error occurs.
-     * @throws ClassFormatException if a class is malformed or cannot be 
interpreted as a class file.
+     * @throws IOException Thrown if an I/O error occurs.
+     * @throws ClassFormatException Thrown if a class is malformed or cannot 
be interpreted as a class file.
      */
     private void readClassInfo() throws IOException, ClassFormatException {
         accessFlags = dataInputStream.readUnsignedShort();
diff --git a/java/org/apache/tomcat/util/bcel/classfile/ElementValue.java 
b/java/org/apache/tomcat/util/bcel/classfile/ElementValue.java
index 1bcb3cc4aa..639686facb 100644
--- a/java/org/apache/tomcat/util/bcel/classfile/ElementValue.java
+++ b/java/org/apache/tomcat/util/bcel/classfile/ElementValue.java
@@ -109,24 +109,14 @@ public abstract class ElementValue {
      *
      * @param input Raw data input.
      * @param cpool Constant pool.
-     * @return a new ElementValue.
-     * @throws IOException if an I/O error occurs.
+     * @return A new ElementValue.
+     * @throws IOException Thrown if an I/O error occurs.
      */
     public static ElementValue readElementValue(final DataInput input, final 
ConstantPool cpool) throws IOException {
         return readElementValue(input, cpool, 0);
     }
 
-    /**
-     * Reads an {@code element_value} as an {@code ElementValue}.
-     *
-     * @param input Raw data input.
-     * @param cpool Constant pool.
-     * @param arrayNesting level of current array nesting.
-     * @return a new ElementValue.
-     * @throws IOException if an I/O error occurs.
-     * @since 6.7.0
-     */
-    public static ElementValue readElementValue(final DataInput input, final 
ConstantPool cpool, int arrayNesting)
+    static ElementValue readElementValue(final DataInput input, final 
ConstantPool cpool, int arrayNesting)
             throws IOException {
         final byte tag = input.readByte();
         switch (tag) {
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 408fad4d28..8b885960ae 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -152,6 +152,13 @@
       </fix>
     </changelog>
   </subsection>
+  <subsection name="Other">
+    <changelog>
+      <update>
+        Update the internal fork of Apache Commons BCEL to 6.13.0. (markt)
+      </update>
+    </changelog>
+  </subsection>
 </section>
 <section name="Tomcat 10.1.60 (schultz)" rtext="2026-09-15">
   <subsection name="Catalina">


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to