Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0
-
None
-
Windows XP Pro
Description
class Bidule implements Serializable {
String a
final String b = 'final'
}
x = new Bidule()
x.b = 'not final any more'
println x.b // The result is 'not final any more'
// Groovy in Action p.201 : "When the final keyword is used with a property declaration, the property will only be readable (no setter method is created and the backing filed is final)