Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.8.6
Description
In the docs of Closure (groovy.lang.Closure), for the resolution strategy OWNER_ONLY, the example code is wrong.
The line def cl =
should be def cl =
{ y = x + y + z}which would throw the exception as mentioned later in the example. The current example runs fine without exception and hence does not explain the concept correctly.