Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
Linux, Ubuntu 18.04
Description
Is it an expected behavior??
Difference between '==' and 'equals()' observed....
{{adithyan@adithyan:~$ groovy -e 'println( (2/1).equals(2) )' }}
false
adithyan@adithyan:~$ groovy -e 'println( (2/1) == (2) )'
true
{{adithyan@adithyan:~$ groovy -v }}
Groovy Version: 2.4.15 JVM: 1.8.0_144 Vendor: Oracle Corporation OS: Linux