Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.5.6
-
None
-
Windows XP
Description
Why does something like that work?
class Base { String test() { return subClassField // subClassField is unknown in class Base!! } } class Sub extends Base { private subClassField = "foo" static main(args) { println new Sub().test() // -> "foo" } }