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

Generic Map reference fails to compile

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.3
    • Fix Version/s: 1.6.4, 1.7-beta-1
    • Component/s: parser
    • Labels:
      None

      Description

      The following code fails to compile for me. I'm compiling from IDEA or
      using a groovyc Ant task, with JDK 1.6. Fails for both Groovy 1.5.7
      and 1.6.3.

      interface TypeDescriptor {
      }

      interface MapDescriptor extends Map<String, TypeDescriptor> {
      }

      The error message is that Map reference has 2 parameters but the
      referred class takes no parameters.

        Attachments

          Activity

            People

            • Assignee:
              roshandawrani Roshan Dawrani
              Reporter:
              gromopetr Peter Gromov
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: