[
https://issues.apache.org/jira/browse/GROOVY-10311?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Paul King closed GROOVY-10311.
------------------------------
> MetaClassImpl creates static meta property for non-static field and getter
> (no setter)
> --------------------------------------------------------------------------------------
>
> Key: GROOVY-10311
> URL: https://issues.apache.org/jira/browse/GROOVY-10311
> Project: Groovy
> Issue Type: Bug
> Reporter: Eric Milles
> Assignee: Eric Milles
> Priority: Major
> Fix For: 4.0.0-beta-2
>
>
> Consider the following ({{java.awt.Font}} is an example of this):
> {code:groovy}
> class C {
> protected String name
> public String getName() { name }
> }
> C.name // calls Class#getName()
> {code}
> {{MetaClassImpl#establishStaticMetaProperty}} returns a non-null result for
> "name". This can get tripped up in access checking when really the static
> property accessed here is from Class.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)