Adithyan K created GROOVY-9011: ---------------------------------- Summary: (2/1).equals(2) is false; but (2/1) == (2) is true Key: GROOVY-9011 URL: https://issues.apache.org/jira/browse/GROOVY-9011 Project: Groovy Issue Type: Bug Components: syntax Environment: Linux, Ubuntu 18.04 Reporter: Adithyan K
Is it an expected behavior?? Difference between '==' and 'equals()' observed.... {{adithyan@adithyan:~$ *groovy -e 'println( (2/1).equals(2) )'* }} {{{color:#14892c}*false* {color}}} {{adithyan@adithyan:~$ *groovy -e 'println( (2/1) == (2) )'* }} {{{color:#14892c}*true*{color}}} {{adithyan@adithyan:~$ *groovy -v* }} {{*{color:#14892c}Groovy Version: 2.4.15 JVM: 1.8.0_144 Vendor: Oracle Corporation OS: Linux{color}*}} -- This message was sent by Atlassian JIRA (v7.6.3#76005)