Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
-
Ubuntu Edgy + JDK 1.6 + Groovy r5589
Description
The code
class Super { protected final x = [ ] } class Sub extends Super { protected final x ; Sub ( ) { x = super.x + [ 'a' ] } } println ( new Sub ( ).x )
results in the output:
nulla
which implies that super.x has not bound to [] but to null. I suspect the super.x is actually referring to x in Sub.