Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: 1.7.6
-
Fix Version/s: 1.7.7, 1.8-beta-4
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
From http://groovy.329449.n5.nabble.com/Change-in-contains-behavior-in-1-7-6-vs-1-7-5-td3367327.html:
Groovy 1.7.5:
def x = [null] as String[] println x[0] == null // true println x[0]?.length() // null
Groovy 1.7.6:
def x = [null] as String[] println x[0] == null // false println x[0]?.length() // 4
There will be now an exception for String[], so fixed