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

Type checking generic types on static methods incorrectly fails for trivial cases

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.0-rc-1
    • Fix Version/s: 2.3.0-rc-4
    • Component/s: Static Type Checker
    • Labels:
      None

      Description

      Type checking for generic method type parameters does not work when calling from a static method to another static method for trivially simple cases.

      See the following gist:
      https://gist.github.com/mperry/11285137

      I suspect this has gotten worse from 2.2.2 to 2.3.0-rc-1 as my project, FunctionalGroovy, does this a lot and I now have many compilation issues related to this when previous I did not. A small number of these are genuine type checking issues.

        Attachments

          Activity

            People

            • Assignee:
              blackdrag Jochen Theodorou
              Reporter:
              mperry Mark Perry
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: