Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.4.5
-
None
Description
Currently, the following code throws an NPE during class generation because the static compiler creates variables of the form "spreadresultX" to store the results of spread safe method calls. See GROOVY-7656 for the original discussion.
@groovy.transform.CompileStatic static void test(String a, String b, List spreadresult1) { [a, b]*.length() } test('a', 'b', [])