Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.8.5, 2.0-beta-2
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
a), b), and c) all work, but d) fails with "GroovyCastException: Cannot cast object '[x]' with class 'java.util.ArrayList' to class 'java.util.LinkedHashSet'"
a)
List x = []
HashSet<String> lhs = x
b)
List x = ['x']
HashSet<String> lhs = x
c)
List x = []
LinkedHashSet<String> lhs = x
d)
List x = ['x']
LinkedHashSet<String> lhs = x