diff options
author | chibash <chiba@javassist.org> | 2019-01-28 01:35:21 +0900 |
---|---|---|
committer | chibash <chiba@javassist.org> | 2019-01-28 01:35:21 +0900 |
commit | 6ea8021f1517ee2923bd5d50dc466594ac7f68bf (patch) | |
tree | 184033445d1926d0313916beb8ffdb686c696344 /src/main/javassist/CtBehavior.java | |
parent | 576b141e43b5fc3506f3a57ee4d5583486ec49a0 (diff) | |
download | javassist-6ea8021f1517ee2923bd5d50dc466594ac7f68bf.tar.gz javassist-6ea8021f1517ee2923bd5d50dc466594ac7f68bf.zip |
fixes the bug reported in Issue #241.
It makes $r available in the code given to CtBehavior#insertBefore().
Diffstat (limited to 'src/main/javassist/CtBehavior.java')
-rw-r--r-- | src/main/javassist/CtBehavior.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/javassist/CtBehavior.java b/src/main/javassist/CtBehavior.java index 1b9dbf0b..a0738ec7 100644 --- a/src/main/javassist/CtBehavior.java +++ b/src/main/javassist/CtBehavior.java @@ -782,7 +782,7 @@ public abstract class CtBehavior extends CtMember { Modifier.isStatic(getModifiers())); jv.recordParamNames(ca, nvars); jv.recordLocalVariables(ca, 0); - jv.recordType(getReturnType0()); + jv.recordReturnType(getReturnType0(), false); jv.compileStmnt(src); Bytecode b = jv.getBytecode(); int stack = b.getMaxStack(); |