groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul King <>
Subject Re: Groovy 2.5.0 Bug
Date Thu, 31 May 2018 03:52:41 GMT
I created this:

Probably worth a triage step to work out whether it is principally a
Groovy or Spock issue. There was a similar issue we fixed earlier on
the Spock side (fix currently only in 1.2-groovy-2.4-SNAPSHOT).
That is where I suspect the bug will be. Whether we can possibly step around
the issue from the Groovy side only remains unclear until further
Basically if you split this:
    def x = 3
into this:
    def x
    x = 3
at the AST transform level, Groovy makes certain assumptions about how the
variable expression for x on the second line should look and whether node
for things like inferred type should be copied into the new node. Those
are more important in Groovy 2.5. We'll have to look into what the expanded
AST for
the Spock 'where:' clause looks like in more detail.

The other possibility is that on the Groovy side we haven't created a new
somewhere that we need to because while something might seem the same
at one point, it isn't the same and needs its own (different) metadata
in the processing.

I can look at this in a couple of weeks but I head off on a cruise after
and won't have connectivity for most of it. So, if someone else wants to
a look, that would be great.

Cheers, Paul.

On Thu, May 31, 2018 at 10:09 AM, Daniel.Sun <> wrote:

> You have better to submit a JIRA issue to track it. The issue is critical
> IMO...
> Cheers,
> Daniel.Sun
> --
> Sent from:

View raw message