Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Consider the following array:
arr = [3,null,5]
Calling min() on this array results in the value 3. However, using min with a closure as in...
arr.min
{ it }will result in the value of 5. Groovy basically ignores everything prior to and including the null.
Someone first detected this problem a couple of years ago, but it still doesn't appear to be fixed. Here is the original thread on this: