Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.1
-
None
-
None
Description
The following works fine in 2.5.9 and 3.0.1:
false ? ['abc'] : ['def']
but the following onyl works in 2.5.9:
true ? ["abc"] as String[] : new String[0]
In 3.0.1 it gives:
groovy.lang.MissingPropertyException: No such property: abc for class: java.lang.Boolean