Browse Source

Now the version number of a class file newly created from scratch may be 51 (Java 7).

git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@667 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
tags/rel_3_17_1_ga
chiba 11 years ago
parent
commit
4bb250d879
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      src/main/javassist/bytecode/ClassFile.java

+ 4
- 0
src/main/javassist/bytecode/ClassFile.java View File

@@ -94,6 +94,8 @@ public final class ClassFile {
* if the JVM supports <code>java.lang.StringBuilder</code>.
* It is 50 (JDK 1.6)
* if the JVM supports <code>java.util.zip.DeflaterInputStream</code>.
* It is 51 (JDK 1.7)
* if the JVM supports <code>java.lang.invoke.CallSite</code>.
*/
public static int MAJOR_VERSION = JAVA_3;

@@ -103,6 +105,8 @@ public final class ClassFile {
MAJOR_VERSION = JAVA_5;
Class.forName("java.util.zip.DeflaterInputStream");
MAJOR_VERSION = JAVA_6;
Class.forName("java.lang.invoke.CallSite");
MAJOR_VERSION = JAVA_7;
}
catch (Throwable t) {}
}

Loading…
Cancel
Save