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.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/javassist/expr/NewExpr.java b/src/main/javassist/expr/NewExpr.java
index 1fa7d4e9..e4c979fe 100644
--- a/src/main/javassist/expr/NewExpr.java
+++ b/src/main/javassist/expr/NewExpr.java
@@ -178,6 +178,10 @@ public class NewExpr extends Expr {
Bytecode bytecode = jc.getBytecode();
storeStack(params, true, paramVar, bytecode);
jc.recordLocalVariables(ca, pos);
+
+ bytecode.addConstZero(newType);
+ bytecode.addStore(retVar, newType); // initialize $_
+
jc.compileStmnt(statement);
bytecode.addAload(retVar);