diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2007-05-29 09:33:53 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2007-05-29 09:33:53 +0000 |
commit | 8242ef42ef19f1f6a3f15e9b230f0317067f3863 (patch) | |
tree | d80ff59c28c3abed60c54539ef9c6f61528b2c6f /src/main/javassist/compiler | |
parent | 33ce6656c3b8c08be8d9b9d7fdc4b70e7f290ecc (diff) | |
download | javassist-8242ef42ef19f1f6a3f15e9b230f0317067f3863.tar.gz javassist-8242ef42ef19f1f6a3f15e9b230f0317067f3863.zip |
the version of the class file generated from scratch was changed from JDK 1.1 to 1.3.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@377 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/compiler')
-rw-r--r-- | src/main/javassist/compiler/MemberCodeGen.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/javassist/compiler/MemberCodeGen.java b/src/main/javassist/compiler/MemberCodeGen.java index bd77b878..3d7ed373 100644 --- a/src/main/javassist/compiler/MemberCodeGen.java +++ b/src/main/javassist/compiler/MemberCodeGen.java @@ -24,9 +24,7 @@ import java.util.ArrayList; /* Code generator methods depending on javassist.* classes. */ public class MemberCodeGen extends CodeGen { - public static final int JAVA1_VER = 45; public static final int JAVA5_VER = 49; - public static final int JAVA6_VER = 50; protected MemberResolver resolver; protected CtClass thisClass; @@ -48,7 +46,7 @@ public class MemberCodeGen extends CodeGen { public int getMajorVersion() { ClassFile cf = thisClass.getClassFile2(); if (cf == null) - return JAVA1_VER; + return ClassFile.MAJOR_VERSION; // JDK 1.3 else return cf.getMajorVersion(); } |