Eric Milles created GROOVY-10311:
------------------------------------

             Summary: 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


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.3.4#803005)

Reply via email to