From 29bf701b71069139ccf59868ebcb7352b9f8049f Mon Sep 17 00:00:00 2001 From: chiba Date: Sat, 18 Apr 2009 15:08:19 +0000 Subject: [PATCH] for fixing JASSIST-81 git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@478 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- src/main/javassist/bytecode/ClassFile.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/main/javassist/bytecode/ClassFile.java b/src/main/javassist/bytecode/ClassFile.java index c087073c..b2828f20 100644 --- a/src/main/javassist/bytecode/ClassFile.java +++ b/src/main/javassist/bytecode/ClassFile.java @@ -45,12 +45,30 @@ public final class ClassFile { String[] cachedInterfaces; String cachedSuperclass; + /** + * The major version number of class files + * for JDK 1.1. + */ + public static final int JAVA_1 = 45; + + /** + * The major version number of class files + * for JDK 1.2. + */ + public static final int JAVA_2 = 46; + /** * The major version number of class files * for JDK 1.3. */ public static final int JAVA_3 = 47; + /** + * The major version number of class files + * for JDK 1.4. + */ + public static final int JAVA_4 = 48; + /** * The major version number of class files * for JDK 1.5. -- 2.39.5