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 2022/10/06 12:14:09 UTC
[commons-bcel] 01/02: Add constants for Java versions 15, 16, 17, 18, and 19.
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 a357ad9d0f1b177e9b0c3ffda18e03dbf4d02b9c
Author: Gary David Gregory (Code signing key) <gg...@apache.org>
AuthorDate: Thu Oct 6 08:12:06 2022 -0400
Add constants for Java versions 15, 16, 17, 18, and 19.
* Const.MAJOR_15
* Const.MAJOR_16
* Const.MAJOR_17
* Const.MAJOR_18
* Const.MAJOR_19
* Const.MINOR_15
* Const.MINOR_16
* Const.MINOR_17
* Const.MINOR_18
* Const.MINOR_19
---
src/changes/changes.xml | 10 ++++
src/main/java/org/apache/bcel/Const.java | 88 ++++++++++++++++++++++++++++++--
2 files changed, 94 insertions(+), 4 deletions(-)
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index c8e635d7..4e354f66 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -106,6 +106,16 @@ The <action> type attribute can be add,update,fix,remove.
<action type="add" dev="ggregory" due-to="Gary Gregory">Make LocalVariableTypeTable implement Iterable<LocalVariable>.</action>
<action type="add" dev="ggregory" due-to="Gary Gregory">Make MethodParameters implement Iterable<MethodParameter>.</action>
<action type="add" dev="ggregory" due-to="Gary Gregory">Make ParameterAnnotations implement Iterable<ParameterAnnotationEntry>.</action>
+ <action type="add" dev="ggregory" due-to="Gary Gregory">Add Const.MAJOR_15</action>
+ <action type="add" dev="ggregory" due-to="Gary Gregory">Add Const.MAJOR_16</action>
+ <action type="add" dev="ggregory" due-to="Gary Gregory">Add Const.MAJOR_17</action>
+ <action type="add" dev="ggregory" due-to="Gary Gregory">Add Const.MAJOR_18</action>
+ <action type="add" dev="ggregory" due-to="Gary Gregory">Add Const.MAJOR_19</action>
+ <action type="add" dev="ggregory" due-to="Gary Gregory">Add Const.MINOR_15</action>
+ <action type="add" dev="ggregory" due-to="Gary Gregory">Add Const.MINOR_16</action>
+ <action type="add" dev="ggregory" due-to="Gary Gregory">Add Const.MINOR_17</action>
+ <action type="add" dev="ggregory" due-to="Gary Gregory">Add Const.MINOR_18</action>
+ <action type="add" dev="ggregory" due-to="Gary Gregory">Add Const.MINOR_19</action>
<!-- UPDATES -->
<action type="update" dev="ggregory" due-to="Dependabot, Gary Gregory">Bump actions/cache from 2 to 3.0.9 #88, #93, #110, #119, #149.</action>
<action type="update" dev="ggregory" due-to="Dependabot, Gary Gregory">Bump actions/checkout from 2.3.1 to 3.0.2 #59, #66, #73, #108, #115.</action>
diff --git a/src/main/java/org/apache/bcel/Const.java b/src/main/java/org/apache/bcel/Const.java
index 55cabd1f..e74c1978 100644
--- a/src/main/java/org/apache/bcel/Const.java
+++ b/src/main/java/org/apache/bcel/Const.java
@@ -229,6 +229,54 @@ public final class Const {
*/
public static final short MINOR_13 = 0;
+ /**
+ * Minor version number of class files for Java 14.
+ *
+ * @see #MAJOR_14
+ * @since 6.4.0
+ */
+ public static final short MINOR_14 = 0;
+
+ /**
+ * Minor version number of class files for Java 15.
+ *
+ * @see #MAJOR_15
+ * @since 6.6.0
+ */
+ public static final short MINOR_15 = 0;
+
+ /**
+ * Minor version number of class files for Java 16.
+ *
+ * @see #MAJOR_16
+ * @since 6.6.0
+ */
+ public static final short MINOR_16 = 0;
+
+ /**
+ * Minor version number of class files for Java 17.
+ *
+ * @see #MAJOR_17
+ * @since 6.6.0
+ */
+ public static final short MINOR_17 = 0;
+
+ /**
+ * Minor version number of class files for Java 18.
+ *
+ * @see #MAJOR_18
+ * @since 6.6.0
+ */
+ public static final short MINOR_18 = 0;
+
+ /**
+ * Minor version number of class files for Java 19.
+ *
+ * @see #MAJOR_19
+ * @since 6.6.0
+ */
+ public static final short MINOR_19 = 0;
+
/**
* Major version number of class files for Java 14.
*
@@ -238,12 +286,44 @@ public final class Const {
public static final short MAJOR_14 = 58;
/**
- * Minor version number of class files for Java 14.
+ * Major version number of class files for Java 15.
*
- * @see #MAJOR_14
- * @since 6.4.0
+ * @see #MINOR_15
+ * @since 6.6.0
*/
- public static final short MINOR_14 = 0;
+ public static final short MAJOR_15 = 59;
+
+ /**
+ * Major version number of class files for Java 16.
+ *
+ * @see #MINOR_16
+ * @since 6.6.0
+ */
+ public static final short MAJOR_16 = 60;
+
+ /**
+ * Major version number of class files for Java 17.
+ *
+ * @see #MINOR_17
+ * @since 6.6.0
+ */
+ public static final short MAJOR_17 = 61;
+
+ /**
+ * Major version number of class files for Java 18.
+ *
+ * @see #MINOR_18
+ * @since 6.6.0
+ */
+ public static final short MAJOR_18 = 62;
+
+ /**
+ * Major version number of class files for Java 19.
+ *
+ * @see #MINOR_19
+ * @since 6.6.0
+ */
+ public static final short MAJOR_19 = 63;
/**
* Default major version number. Class file is for Java 1.1.