You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/04/09 16:28:07 UTC

[commons-bcel] branch master updated: Add Const.MAJOR_20

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 f65bb1c6 Add Const.MAJOR_20
f65bb1c6 is described below

commit f65bb1c6b569f3472c08c045d3ab19fa0bad2cd0
Author: Gary David Gregory (Code signing key) <gg...@apache.org>
AuthorDate: Sun Apr 9 12:28:10 2023 -0400

    Add Const.MAJOR_20
    
    Add Const.MINOR_20
---
 src/changes/changes.xml                  |  2 ++
 src/main/java/org/apache/bcel/Const.java | 16 ++++++++++++++++
 2 files changed, 18 insertions(+)

diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 97d57b4e..7e05774c 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -70,6 +70,8 @@ The <action> type attribute can be add,update,fix,remove.
       <action                  type="add" dev="ggregory" due-to="nbauma109">Increase code coverage in Class2HTMLTestCase with new test input Java4Example #186.</action>
       <action                  type="add" dev="ggregory" due-to="nbauma109">Add verifier tests on some opcodes #180.</action>
       <action                  type="add" dev="ggregory" due-to="nbauma109">Added signature test cases for class/method, and bad signatures #182.</action>
+      <action                  type="add" dev="ggregory" due-to="Gary Gregory">Add Const.MAJOR_20.</action>
+      <action                  type="add" dev="ggregory" due-to="Gary Gregory">Add Const.MINOR_20.</action>
       <!-- FIX -->
       <action                  type="fix" dev="markt" due-to="OSS-Fuzz">When parsing an class with an invalid constant reference, ensure ClassParser.parse() throws ClassFormatException, not NullPointerException.</action>
       <action                  type="fix" dev="markt" due-to="OSS-Fuzz">Ensure that references to a constant pool entry with index zero trigger a ClassFormatException, not a NullPointerException.</action>
diff --git a/src/main/java/org/apache/bcel/Const.java b/src/main/java/org/apache/bcel/Const.java
index 44cba6db..7af40a31 100644
--- a/src/main/java/org/apache/bcel/Const.java
+++ b/src/main/java/org/apache/bcel/Const.java
@@ -276,6 +276,14 @@ public final class Const {
      */
     public static final short MINOR_19 = 0;
 
+    /**
+     * Minor version number of class files for Java 20.
+     *
+     * @see #MAJOR_20
+     * @since 6.8.0
+     */
+    public static final short MINOR_20 = 0;
+
     /**
      * Major version number of class files for Java 14.
      *
@@ -324,6 +332,14 @@ public final class Const {
      */
     public static final short MAJOR_19 = 63;
 
+    /**
+     * Major version number of class files for Java 20.
+     *
+     * @see #MINOR_20
+     * @since 6.8.0
+     */
+    public static final short MAJOR_20 = 64;
+
     /**
      * Default major version number. Class file is for Java 1.1.
      *