groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Gilligan (JIRA)" <j...@apache.org>
Subject [jira] [Created] (GROOVY-8629) Groovy STC fails on return of nested class using generics
Date Mon, 04 Jun 2018 06:21:00 GMT
Sean Gilligan created GROOVY-8629:
-------------------------------------

             Summary: Groovy STC fails on return of nested class using generics
                 Key: GROOVY-8629
                 URL: https://issues.apache.org/jira/browse/GROOVY-8629
             Project: Groovy
          Issue Type: Bug
    Affects Versions: 2.5.0, 2.5.0-rc-3
         Environment: I can reproduce from the command line with:

groovy mapComparisonTest.groovy

With Groovy 2.5.0 and Java 1.8.0_172 on macOS High Sierra.



            Reporter: Sean Gilligan
         Attachments: mapComparisonTest.groovy

The error returns on line 22 of the attached file:

return new IntegerPairIterator(unionKeys.iterator())

Assigning to a temporary variable and returning on a second line OR removing @StaticCompile
will fix the problem.

I thought this was related to GROOVY-8590 because it first occurred in Groovy 2.5.0-rc-3,
but it was not fixed in Groovy 2.5.0.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message