Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.7.1
-
None
-
None
Description
Create class Foo
class Foo { static foo=2 static getFoo(){ return 3 } }
and a script
import static Foo.foo print foo
This script calls getter getFoo and prints "3".
But if you delete declaration "static foo=2" from the class the script fails with MissingPropertyException.
IMHO the script should call getter in both cases.
Attachments
Issue Links
- relates to
-
GROOVY-4153 Statically imported properties
- Closed