Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.4.15
-
None
-
None
Description
If initial value expression is non-null, the first call to setType appears to have no effect.
public FieldNode(String name, int modifiers, ClassNode type, ClassNode owner, Expression initialValueExpression) { this.name = name; this.modifiers = modifiers; this.type = type; if (this.type == ClassHelper.DYNAMIC_TYPE && initialValueExpression != null) this.setType(initialValueExpression.getType()); this.setType(type); this.originType = type;