From fd785d5ee3725cff93d6c391bb77ca11835c59b8 Mon Sep 17 00:00:00 2001 From: chibash Date: Wed, 7 May 2014 12:18:15 +0900 Subject: [PATCH] added the version number for Java8 class files --- .gitignore | 1 + src/main/javassist/bytecode/ClassFile.java | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index 36ea3769..bd3c6ec8 100644 --- a/.gitignore +++ b/.gitignore @@ -8,5 +8,6 @@ lib/ .DS_Store .classpath .project +.settings TestLog.xml diff --git a/src/main/javassist/bytecode/ClassFile.java b/src/main/javassist/bytecode/ClassFile.java index a7d53fc9..7a308adb 100644 --- a/src/main/javassist/bytecode/ClassFile.java +++ b/src/main/javassist/bytecode/ClassFile.java @@ -87,6 +87,12 @@ public final class ClassFile { */ public static final int JAVA_7 = 51; + /** + * The major version number of class files + * for JDK 1.8. + */ + public static final int JAVA_8 = 52; + /** * The major version number of class files created * from scratch. The default value is 47 (JDK 1.3). -- 2.39.5