aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/javassist/compiler')
-rw-r--r--src/main/javassist/compiler/MemberCodeGen.java4
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();
}