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

Nested class is not resolved if compiled separately

    XMLWordPrintableJSON

Details

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

    Description

      classes.groovy
      package bugs
      
      class CurrentParent {
        static class Target {}
      }
      
      bug.groovy
      package bugs
      
      class Current extends CurrentParent {
        static usage() {
          new Target()
        }
      }
      

      This works if files are compiled together, but fails if files are compiled one by one with Error:(5, 5) Groovyc: unable to resolve class Target

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              daniilo Daniil Ovchinnikov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: