Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
2.4.2
-
None
Description
The following code is a regression, because previously the code used an iterator, which in case of null returned an empty iterator. With the optimized path, the loop will fail.
@CompileStatic private void foo(String[] arr) { for (String s in arr) { println(s) } } foo(null)