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

No generic type information for closure parameters in generated closure class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.0
    • 1.6.8, 1.7.1, 1.8-beta-1
    • Compiler
    • None

    Description

      cl =

      { List<String> s -> }

      println cl.getClass().getMethod("call", List).genericParameterTypes[0] // interface java.util.List (would have expected List<String>)
      println cl.getClass().getMethod("doCall", List).genericParameterTypes[0] // interface java.util.List (would have expected List<String>)

      According to Jochen, this is a (probably easy to fix) bug.

      Attachments

        Activity

          People

            roshandawrani Roshan Dawrani
            pniederw Peter Niederwieser
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: