Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
get a class
class Constants { static final pi = 3.14 //final property with implicit getter }
and another one
import static Constants.* println Pi // first reference println Constants.Pi //second reference
IMHO both references to pi should throw a MissingPropertyException as they have capitalised first letter. Or both of them should not. Now first reference works while the second ref does not.
BTW if we provide explicit 'public' modifier to pi, both references fail.
Attachments
Issue Links
- is related to
-
GROOVY-9618 Property reference resolves to field, not getter when property name is single upper-case letter
- Closed