groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Darren Hurt (JIRA)" <>
Subject [jira] [Commented] (GROOVY-7763) Various problems with type inference in Groovy 2.4.6
Date Wed, 16 Aug 2017 15:39:00 GMT


Darren Hurt commented on GROOVY-7763:

Also, even if it was a 'good' change, this is surely too big a breaking change for a minor

All are referred to via 2.4 from the point of view of groovy Eclipse and yet what compiles
in 2.4.3 as opposed to 2.4.6 is very different, so they certainly aren't interchange-able.
I realise that part of this point is about Groovy Eclipse not allowing a more fine grained
selection of Groovy compilers that allows me to go back to 2.4.3, but still...

> Various problems with type inference in Groovy 2.4.6
> ----------------------------------------------------
>                 Key: GROOVY-7763
>                 URL:
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 2.4.6
>            Reporter: Graeme Rocher
>            Priority: Critical
> After trying to upgrade Grails to Groovy 2.4.6 there are numerous problems with @CompileStatic
and type inference with Maps and Lists. If I had seen the vote for the release in time I would
have tested and voted -1, so sorry for only reporting this afterwards.
> This commits shows the changes I had to make in order to get Grails to compile with Groovy
> You can see for example that previously returning a list initialised with variables of
the correct type compiled, but no longer does:
> Also empty lists and maps no longer seem to compile. See:

This message was sent by Atlassian JIRA

View raw message