aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchibash <chiba@javassist.org>2015-10-07 16:35:52 +0900
committerchibash <chiba@javassist.org>2015-10-07 16:35:52 +0900
commite3f096df2d83520c504b3f64f735625b55432427 (patch)
tree78c755a55521c0a2fa804d9c71ae8397ad173d9b
parent5b0544a385616b6884267ce3ef74a19490109894 (diff)
downloadjavassist-3.20.tar.gz
javassist-3.20.zip
updates javadoc comments.3.20
-rw-r--r--src/main/javassist/CtField.java11
1 files changed, 11 insertions, 0 deletions
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.
+ *
+ * <p>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.
+ * </p>
+ *
+ * @see CodeConverter
+ * @see javassist.expr.ExprEditor
*/
public void setType(CtClass clazz) {
declaringClass.checkModify();