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

import doesn't allow inner classes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0
    • 1.1-beta-1
    • None
    • None

    Description

      Inner classes, e.g. Map.Entry are not resolved if referenced within an import statement
      or are part of standard default imports

      package org.junit.runners
      println Map.Entry.class.name
      println Thread.UncaughtExceptionHandler.class.name
      // check that package name is prefixed correctly (not part of bug just checking doesn't break with fix)
      println Parameterized.Parameters.class.name // requires junit 4 jar on classpath

      Also, adding:

      import java.util.Map.Entry
      println Entry.class.name

      Attachments

        Activity

          People

            paulk Paul King
            paulk Paul King
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified