Details
-
Sub-task
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.1-rc-3
-
None
-
None
Description
This is related to the GString equality issues, but is an issue on its own.
This might cause nasty side effects. BigDecimal a = 2.0 BigDecimal b = 2.00 println a.equals(b) // false println(a.compareTo(b)) // 0 println a == b // true println([a].equals([b])) // true, which is different from Java, which would return false!
I think Groovy should try to behave 100 percent like Java in such contexts.