Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
1.7.3
-
None
Description
In contrast to other empty collections, empty primitive arrays evaluate to true:
def x = [] as int[] assert !x // fails!
Empty non-primitive arrays behave as expected:
def x = [] as String[] assert !x // passes