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

Shigeru Chiba chiba at is.titech.ac.jp
Tue May 29 05:33:53 EDT 2007


  User: chiba   
  Date: 07/05/29 05:33:53

  Modified:    src/main/javassist/compiler  MemberCodeGen.java
  Log:
  the version of the class file generated from scratch was changed from JDK 1.1 to 1.3.
  
  Revision  Changes    Path
  1.29      +1 -3      javassist/src/main/javassist/compiler/MemberCodeGen.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: MemberCodeGen.java
  ===================================================================
  RCS file: /cvsroot/jboss/javassist/src/main/javassist/compiler/MemberCodeGen.java,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -b -r1.28 -r1.29
  --- MemberCodeGen.java	29 May 2007 09:22:01 -0000	1.28
  +++ MemberCodeGen.java	29 May 2007 09:33:53 -0000	1.29
  @@ -24,9 +24,7 @@
   /* 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 int getMajorVersion() {
           ClassFile cf = thisClass.getClassFile2();
           if (cf == null)
  -            return JAVA1_VER;
  +            return ClassFile.MAJOR_VERSION;     // JDK 1.3
           else
               return cf.getMajorVersion();
       }
  
  
  



More information about the jboss-cvs-commits mailing list