]> source.dussan.org Git - javassist.git/commitdiff
fixed JIRA JASSIST-40
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Fri, 4 Jan 2008 16:20:25 +0000 (16:20 +0000)
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Fri, 4 Jan 2008 16:20:25 +0000 (16:20 +0000)
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@416 30ef5769-5b8d-40dd-aea6-55b5d6557bb3

src/main/javassist/CtBehavior.java

index bcae803f75c43cde588ccdece1dae0c96bd613f6..6fb9361ad93ac50823d257411c76d2b0543851e9 100644 (file)
@@ -775,7 +775,11 @@ public abstract class CtBehavior extends CtMember {
                 b.addLconst(0);
                 b.addLstore(returnVarNo);
             }
-            else if (c != 'V') { // int, boolean, char, short, ...
+            else if (c == 'V') {
+                b.addOpcode(Opcode.ACONST_NULL);
+                b.addAstore(returnVarNo);
+            }
+            else { // int, boolean, char, short, ...
                 b.addIconst(0);
                 b.addIstore(returnVarNo);
             }