Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-8362

Nested class is resolved via another nested class with package name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • 2.4.14
    • None
    • None

    Description

      bugs/bugs.groovy
      package bugs
      
      class Current {
      
        static class bugs {
          static class Target {}
        }
      
        static usage() {
          new Target() // error expected
        }
      }
      
      println Current.usage() // bugs.Current$bugs$Target@20d28811
      

      Attachments

        Issue Links

          Activity

            People

              blackdrag Jochen Theodorou
              daniilo Daniil Ovchinnikov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: