aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/bytecode/ClassFile.java
diff options
context:
space:
mode:
authorchibash <chiba@javassist.org>2016-07-14 12:56:05 +0900
committerchibash <chiba@javassist.org>2016-07-14 12:56:05 +0900
commitdfd5230a6eeae9fdc3debc3db26634db3062aa2d (patch)
treea72543e8182bd01bea4ca2670fbd5f0f96645bea /src/main/javassist/bytecode/ClassFile.java
parentaabe16cc1bc7722a83d9d4d10a5e5340c7125836 (diff)
downloadjavassist-dfd5230a6eeae9fdc3debc3db26634db3062aa2d.tar.gz
javassist-dfd5230a6eeae9fdc3debc3db26634db3062aa2d.zip
adds ClassFile.JAVA_9
Diffstat (limited to 'src/main/javassist/bytecode/ClassFile.java')
-rw-r--r--src/main/javassist/bytecode/ClassFile.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/javassist/bytecode/ClassFile.java b/src/main/javassist/bytecode/ClassFile.java
index 887ec7a3..9e7729fd 100644
--- a/src/main/javassist/bytecode/ClassFile.java
+++ b/src/main/javassist/bytecode/ClassFile.java
@@ -118,6 +118,12 @@ public final class ClassFile {
public static final int JAVA_8 = 52;
/**
+ * The major version number of class files
+ * for JDK 1.9.
+ */
+ public static final int JAVA_9 = 53;
+
+ /**
* The major version number of class files created
* from scratch. The default value is 47 (JDK 1.3).
* It is 49 (JDK 1.5)
@@ -128,6 +134,8 @@ public final class ClassFile {
* if the JVM supports <code>java.lang.invoke.CallSite</code>.
* It is 52 (JDK 1.8)
* if the JVM supports <code>java.util.function.Function</code>.
+ * It is 53 (JDK 1.9)
+ * if the JVM supports <code>java.lang.reflect.Module</code>.
*/
public static final int MAJOR_VERSION;
@@ -142,6 +150,8 @@ public final class ClassFile {
ver = JAVA_7;
Class.forName("java.util.function.Function");
ver = JAVA_8;
+ Class.forName("java.lang.reflect.Module");
+ ver = JAVA_9;
}
catch (Throwable t) {}
MAJOR_VERSION = ver;