diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2007-05-12 14:45:10 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2007-05-12 14:45:10 +0000 |
commit | c2d6bdf673d0fde9b947ae23094cd76493d5ca88 (patch) | |
tree | c0f5dbd5cbb7acf859f51b14ee7e08b4358e8aed /src/main/javassist/bytecode/ClassFile.java | |
parent | 4958b9a45ab284be8d5927d8cc96df14c64d02c1 (diff) | |
download | javassist-c2d6bdf673d0fde9b947ae23094cd76493d5ca88.tar.gz javassist-c2d6bdf673d0fde9b947ae23094cd76493d5ca88.zip |
changed the implementation of try statements so that jsr/ret will not be used anymore.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@371 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/bytecode/ClassFile.java')
-rw-r--r-- | src/main/javassist/bytecode/ClassFile.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/javassist/bytecode/ClassFile.java b/src/main/javassist/bytecode/ClassFile.java index 50b6cacd..e28e6c63 100644 --- a/src/main/javassist/bytecode/ClassFile.java +++ b/src/main/javassist/bytecode/ClassFile.java @@ -46,6 +46,12 @@ public final class ClassFile { String cachedSuperclass; /** + * The major version number of class files created + * from scratch. The value is 45 (JDK 1.1). + */ + public static final int MAJOR_VERSION = 45; + + /** * Constructs a class file from a byte stream. */ public ClassFile(DataInputStream in) throws IOException { @@ -63,7 +69,7 @@ public final class ClassFile { * a fully-qualified super class name */ public ClassFile(boolean isInterface, String classname, String superclass) { - major = 45; + major = MAJOR_VERSION; minor = 3; // JDK 1.1 or later constPool = new ConstPool(classname); thisClass = constPool.getThisClassInfo(); |