summaryrefslogtreecommitdiffstats
path: root/src/main/javassist
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/javassist')
-rw-r--r--src/main/javassist/expr/NewExpr.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/javassist/expr/NewExpr.java b/src/main/javassist/expr/NewExpr.java
index 7c3a4160..2f976d82 100644
--- a/src/main/javassist/expr/NewExpr.java
+++ b/src/main/javassist/expr/NewExpr.java
@@ -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");