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

inner classes not found in scripts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.4.0
    • None
    • Compiler
    • None

    Description

      Hello, when I try to create two files in the same directory:

      B.groovy
      class B {
          static class C { }
      }
      
      A.groovy
      new B.C()
      

      Then trying to run A.groovy with the groovy command gives a compilation error:

      org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
      /home/webczat/A.groovy: 1: unable to resolve class B.C
       @ line 1, column 1.
         new B.C()
         ^
      1 error
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              webczat MichaƂ Zegan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: