From e3f096df2d83520c504b3f64f735625b55432427 Mon Sep 17 00:00:00 2001 From: chibash Date: Wed, 7 Oct 2015 16:35:52 +0900 Subject: [PATCH] updates javadoc comments. --- src/main/javassist/CtField.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/javassist/CtField.java b/src/main/javassist/CtField.java index 76f64f2a..a4cb01e1 100644 --- a/src/main/javassist/CtField.java +++ b/src/main/javassist/CtField.java @@ -374,6 +374,17 @@ public class CtField extends CtMember { /** * Sets the type of the field. + * + *

This method does not automatically update method bodies that access + * this field. They have to be explicitly updated. For example, + * if some method contains an expression {@code t.value} and the type + * of the variable {@code t} is changed by {@link #setType(CtClass)} + * from {@code int} to {@code double}, then {@ t.value} has to be modified + * since the bytecode of {@code t.value} contains the type information. + *

+ * + * @see CodeConverter + * @see javassist.expr.ExprEditor */ public void setType(CtClass clazz) { declaringClass.checkModify(); -- 2.39.5