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

import * doesn't import inner classes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-2
    • 1.0-JSR-4
    • None
    • None

    Description

      In Bubbles.java:

      public class Bubbles {
      public static class Ricky{ }
      }

      In BubblesTest.groovy:

      import Bubbles.*

      def r = new Ricky()

      Running it gives the error:

      General error during class generation: No such class: Ricky in constructor call for class: Bubbles.

      changing the import statement to "import Bubbles.Ricky" solves the problem, but in Java, "import Bubbles.*" works.

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            mcspanky Martin C. Martin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: