git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@205 30ef5769-5b8d-40dd-aea6-55b5d6557bb3tags/rel_3_17_1_ga
@@ -125,6 +125,8 @@ public class NewExpr extends Expr { | |||
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"); |