Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.2.1
-
None
-
None
-
Windows
Description
Within nested .with blocks, calling a method of the wrapper class fails with a missing property exception.
Example:
import groovy.sql.* class Foo {} class Test extends GroovyTestCase { void test() { new Foo().with { def result = new GroovyRowResult([:]) result.with { assertEquals("1:", 1, 1) } } } } new Test().test()
Result:
groovy.lang.MissingPropertyException: assertEquals
Note: Remove 'new Foo().with' and the code works. Also, the code works in Groovy 1.8.