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 84936b7 [BCEL-322] Add constants to org.apache.bcel.Const for Java 14.
84936b7 is described below
commit 84936b7a43cdb3bca9e2fd83d521dd6e38891799
Author: Gary Gregory <[email protected]>
AuthorDate: Sat Jul 6 10:31:05 2019 -0400
[BCEL-322] Add constants to org.apache.bcel.Const for Java 14.
- org.apache.bcel.Const.MAJOR_14
- org.apache.bcel.Const.MINOR_14
Checked with:
openjdk version "14-ea" 2020-03-17
OpenJDK Runtime Environment (build 14-ea+3-65)
OpenJDK 64-Bit Server VM (build 14-ea+3-65, mixed mode, sharing)
---
src/changes/changes.xml | 1 +
src/main/java/org/apache/bcel/Const.java | 12 ++++++++++++
2 files changed, 13 insertions(+)
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 3d54bce..55d5cf5 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -70,6 +70,7 @@ The <action> type attribute can be add,update,fix,remove.
<action issue="BCEL-317" type="update" dev="ggregory" due-to="Tomo
Suzuki, Gary Gregory">Pluggable cache for ConstantUtf8.</action>
<action issue="BCEL-320" type="add" dev="ggregory" due-to="Tomo Suzuki,
Gary Gregory">Add LruCacheClassPathRepository that can scan many JAR files
without OutOfMemoryError.</action>
<action type="update" dev="ggregory" due-to="Gary
Gregory">Fix example src/examples/ClassDumper.java
ClassDumper.processID().</action>
+ <action issue="BCEL-322" type="add" dev="ggregory" due-to="Gary
Gregory">Add constants to org.apache.bcel.Const for Java 14.</action>
</release>
<release version="6.3.1" date="2019-03-20" description="Bug fix release">
diff --git a/src/main/java/org/apache/bcel/Const.java
b/src/main/java/org/apache/bcel/Const.java
index b282ba7..722daba 100644
--- a/src/main/java/org/apache/bcel/Const.java
+++ b/src/main/java/org/apache/bcel/Const.java
@@ -177,6 +177,18 @@ public final class Const {
* */
public static final short MINOR_13 = 0;
+ /** Major version number of class files for Java 14.
+ * @see #MINOR_14
+ * @since 6.4.0
+ * */
+ public static final short MAJOR_14 = 58;
+
+ /** Minor version number of class files for Java 14.
+ * @see #MAJOR_14
+ * @since 6.4.0
+ * */
+ public static final short MINOR_14 = 0;
+
/** Default major version number. Class file is for Java 1.1.
* @see #MAJOR_1_1
* */