Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Test failure with null when multiple nested with blocks #778
When using deeply nested with() blocks the test fails with a null value
How to reproduce
Additional Environment information
java version "1.8.0_144"
Build tool version
Build time: 2017-09-20 14:48:23 UTC
Build-tool dependencies used
@angry-cellophane the problem you described was this line
Did you try to change it to
Finally had enough time to look into the issue.
the code above doesn't do what we want: to invoke the contains method on the closure. If we leave this groovy will use a reference to the spec at this place.
The bug was caused by the PR #606