diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2012-02-01 09:56:21 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2012-02-01 09:56:21 +0000 |
commit | 075e0b82876cc274dedf125a44b5288d6e594b3f (patch) | |
tree | 96bccf0157bd8e5cd7b2044a13f9e7f1e969b652 /src/main/javassist/CtBehavior.java | |
parent | 3265fb96e3240941f5a932174e54e1d1da94061c (diff) | |
download | javassist-075e0b82876cc274dedf125a44b5288d6e594b3f.tar.gz javassist-075e0b82876cc274dedf125a44b5288d6e594b3f.zip |
fixed JASSIST-149
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@607 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/CtBehavior.java')
-rw-r--r-- | src/main/javassist/CtBehavior.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/javassist/CtBehavior.java b/src/main/javassist/CtBehavior.java index c58fc932..8a690da3 100644 --- a/src/main/javassist/CtBehavior.java +++ b/src/main/javassist/CtBehavior.java @@ -651,7 +651,15 @@ public abstract class CtBehavior extends CtMember { /** * Modifies the method/constructor body. * + * <p>While executing this method, only <code>replace()</code> + * in <code>Expr</code> is available for bytecode modification. + * Other methods such as <code>insertBefore()</code> may collapse + * the bytecode because the <code>ExprEditor</code> loses + * its current position. + * * @param editor specifies how to modify. + * @see javassist.expr.Expr#replace(String) + * @see #insertBefore(String) */ public void instrument(ExprEditor editor) throws CannotCompileException |