Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
-
Groovy++ which IMO doesn't matter
Description
class Foo { int hashCode() { 42 } } def x = [new Foo()] def y = [new Foo()] println (x-y) // prints [] x.removeAll(y) println x // prints [Foo@2a]
Not sure about released Groovy versions. NumberAwareComparator seems to be responsible