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

commit 902bf29777c9a73e6f00d0c4fa9889b38938874a
Author: Gary Gregory <[email protected]>
AuthorDate: Mon Jan 12 17:31:09 2026 -0500

    org.apache.bcel.classfile.Deprecated now requires its the
    attribute_length item be zero.
    
    See 
https://docs.oracle.com/javase/specs/jvms/se25/html/jvms-4.html#jvms-4.7.15
---
 src/main/java/org/apache/bcel/classfile/Deprecated.java | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/main/java/org/apache/bcel/classfile/Deprecated.java 
b/src/main/java/org/apache/bcel/classfile/Deprecated.java
index b2e0ef89..4d12e55f 100644
--- a/src/main/java/org/apache/bcel/classfile/Deprecated.java
+++ b/src/main/java/org/apache/bcel/classfile/Deprecated.java
@@ -30,6 +30,13 @@ import org.apache.commons.lang3.ArrayUtils;
  * This class is derived from <em>Attribute</em> and denotes that this is a 
deprecated method. It is instantiated from the 
<em>Attribute.readAttribute()</em>
  * method.
  *
+ * <pre>
+ * Deprecated_attribute {
+ *     u2 attribute_name_index;
+ *     u4 attribute_length;
+ * }
+ * </pre>
+ *
  * @see Attribute
  * @see <a 
href="https://docs.oracle.com/javase/specs/jvms/se25/html/jvms-4.html#jvms-4.7.15";>JVM
 Specification: The Deprecated Attribute</a>
  */

Reply via email to