Browse Source

updates javadoc comments.

tags/rel_3_21_0-java9-ea
chibash 8 years ago
parent
commit
e3f096df2d
1 changed files with 11 additions and 0 deletions
  1. 11
    0
      src/main/javassist/CtField.java

+ 11
- 0
src/main/javassist/CtField.java View File

@@ -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();

Loading…
Cancel
Save