summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchibash <chiba@javassist.org>2014-05-07 12:18:15 +0900
committerchibash <chiba@javassist.org>2014-05-07 12:18:15 +0900
commitfd785d5ee3725cff93d6c391bb77ca11835c59b8 (patch)
tree7a890fdbe8f6a136a46bceb99393eb683c5e9102
parentc135f69c8b4d6f64ce22ade1fa9f76c614bb280e (diff)
downloadjavassist-fd785d5ee3725cff93d6c391bb77ca11835c59b8.tar.gz
javassist-fd785d5ee3725cff93d6c391bb77ca11835c59b8.zip
added the version number for Java8 class files
-rw-r--r--.gitignore1
-rw-r--r--src/main/javassist/bytecode/ClassFile.java6
2 files changed, 7 insertions, 0 deletions
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
@@ -88,6 +88,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).
* It is 49 (JDK 1.5)