[jboss-cvs] javassist SVN: r607 - trunk/src/main/javassist.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Feb 1 04:56:21 EST 2012
Author: chiba
Date: 2012-02-01 04:56:21 -0500 (Wed, 01 Feb 2012)
New Revision: 607
Modified:
trunk/src/main/javassist/CtBehavior.java
Log:
fixed JASSIST-149
Modified: trunk/src/main/javassist/CtBehavior.java
===================================================================
--- trunk/src/main/javassist/CtBehavior.java 2012-01-24 03:16:43 UTC (rev 606)
+++ trunk/src/main/javassist/CtBehavior.java 2012-02-01 09:56:21 UTC (rev 607)
@@ -651,7 +651,15 @@
/**
* 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
More information about the jboss-cvs-commits
mailing list