aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/expr/NewExpr.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/javassist/expr/NewExpr.java')
-rw-r--r--src/main/javassist/expr/NewExpr.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/main/javassist/expr/NewExpr.java b/src/main/javassist/expr/NewExpr.java
index 423a5d72..62f25ad6 100644
--- a/src/main/javassist/expr/NewExpr.java
+++ b/src/main/javassist/expr/NewExpr.java
@@ -205,9 +205,16 @@ public class NewExpr extends Expr {
bytecode.addOpcode(NEW);
bytecode.addIndex(newIndex);
bytecode.addOpcode(DUP);
- gen.atMethodCall2(newType, MethodInfo.nameInit,
- args, false, true, -1);
+ gen.atMethodCallCore(newType, MethodInfo.nameInit, args,
+ false, true, -1, null);
gen.setType(newType);
}
+
+ public void setReturnType(JvstTypeChecker c, ASTList args)
+ throws CompileError
+ {
+ c.atMethodCallCore(newType, MethodInfo.nameInit, args);
+ c.setType(newType);
+ }
}
}