Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.5, 2.5.13
-
None
Description
Since GROOVY-7701 was the only issue relating to with in Groovy 3.0.5, I think that fix might have broken behaviour in Spock (using 2.0-M3):
This works in 3.0.4:
static BOOKING = 123 def 'get stuff'() { given: def stuff = [ booking: 123 ] expect: with(stuff) { booking == BOOKING } }
But fails in 3.0.5 with:
Condition not satisfied: booking == BOOKING | | | 123 | null false
Attachments
Issue Links
- is broken by
-
GROOVY-7701 org.codehaus.groovy.runtime.typehandling.GroovyCastException in Groovy ".with { ... }" - Block
- Closed
- relates to
-
GROOVY-10985 Precedence of self property over outer class field
- Closed
-
GROOVY-11056 modified behavior of variable resolution within Closure
- Closed