Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0-JSR-1, 1.0-JSR-2
-
None
-
None
-
Windows XP; JDK 1.5-02; Groovy JSR-01 and JSR-02
Description
NullPointerException raised with closure code in JSR-02 but which runs on JSR-01.
In the attached code a NullPointerException is raised when using JSR-02.
The same code runs correctly under JSR-01.
Replacing lines A and B with the counterparts C and D then operates correctly.
The problem appears to be the closure twelveTimes created by currying the composition
closure.