groovy

Generic Map reference fails to compile

Details

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

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.

Activity

Hide
Roshan Dawrani added a comment -

Fixed

Show
Roshan Dawrani added a comment - Fixed

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: