[jboss-cvs] javassist/src/main/javassist/bytecode ...

Shigeru Chiba chiba at is.titech.ac.jp
Sat May 12 10:45:10 EDT 2007


  User: chiba   
  Date: 07/05/12 10:45:10

  Modified:    src/main/javassist/bytecode  ClassFile.java
  Log:
  changed the implementation of try statements so that jsr/ret will not be used anymore.
  
  Revision  Changes    Path
  1.31      +7 -1      javassist/src/main/javassist/bytecode/ClassFile.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ClassFile.java
  ===================================================================
  RCS file: /cvsroot/jboss/javassist/src/main/javassist/bytecode/ClassFile.java,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -b -r1.30 -r1.31
  --- ClassFile.java	5 May 2007 03:47:52 -0000	1.30
  +++ ClassFile.java	12 May 2007 14:45:10 -0000	1.31
  @@ -46,6 +46,12 @@
       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 @@
        *            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();
  
  
  



More information about the jboss-cvs-commits mailing list