You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (JIRA)" <ji...@apache.org> on 2019/07/23 18:01:00 UTC

[jira] [Created] (GROOVY-9203) Anonymous inner class count is not local to enclosing type

Eric Milles created GROOVY-9203:
-----------------------------------

             Summary: Anonymous inner class count is not local to enclosing type
                 Key: GROOVY-9203
                 URL: https://issues.apache.org/jira/browse/GROOVY-9203
             Project: Groovy
          Issue Type: Bug
            Reporter: Eric Milles


Consider the following:
{code}
class C {
  def meth() {
    new Object() {} // C$1
    new Object() {} // C$2
    new Object() {  // C$3
      String toString() {
        new Object() {} // C$3$4 but expect C$3$1
      }
    }
  }
}
println new C().meth()
{code}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)