Details
-
New Feature
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Now that Groovy 1.7 enforces field finality, I am missing having a shortcut for readonly fields.
It would be nice to have something like:
class T {
@Readonly thing
}
Which would surpress the generation of the setter that Groovy would ordinarily create.
Attachments
Issue Links
- is related to
-
GROOVY-5011 @Override should be allowed (and verified) on properties that implement an interface
- Open
-
GROOVY-4519 Add shorthand syntax for specifying access modifiers for property methods (setters & getters) & fields
- Closed