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

Shigeru Chiba chiba at is.titech.ac.jp
Sun Jan 20 08:33:51 EST 2008


  User: chiba   
  Date: 08/01/20 08:33:51

  Modified:    src/main/javassist/expr  NewExpr.java
  Log:
  fixed JIRA JASSIST-41
  
  Revision  Changes    Path
  1.20      +3 -4      javassist/src/main/javassist/expr/NewExpr.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: NewExpr.java
  ===================================================================
  RCS file: /cvsroot/jboss/javassist/src/main/javassist/expr/NewExpr.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -b -r1.19 -r1.20
  --- NewExpr.java	22 Jun 2007 11:50:48 -0000	1.19
  +++ NewExpr.java	20 Jan 2008 13:33:51 -0000	1.20
  @@ -144,11 +144,10 @@
           else if (op == Opcode.DUP_X1
                    && iterator.byteAt(newPos + 4) == Opcode.SWAP)
               return 5;
  -        else if (op == Opcode.INVOKESPECIAL)
  -            return 3;   // for Eclipse's compiler
           else
  -            throw new CannotCompileException(
  -                        "sorry, cannot edit NEW followed by no DUP");
  +            return 3;   // for Eclipse.  The generated code may include no DUP.
  +            // throw new CannotCompileException(
  +            //            "sorry, cannot edit NEW followed by no DUP");
       }
   
       /**
  
  
  



More information about the jboss-cvs-commits mailing list