commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] Created: (MATH-335) Fraction.hashCode() inconsistent with Fraction.equals()
Date Wed, 27 Jan 2010 15:32:34 GMT
Fraction.hashCode() inconsistent with Fraction.equals()
-------------------------------------------------------

                 Key: MATH-335
                 URL: https://issues.apache.org/jira/browse/MATH-335
             Project: Commons Math
          Issue Type: Bug
            Reporter: Sebb
            Priority: Minor


Fraction.hashCode() is inconsistent with Fraction.equals().

hashCode() uses getNumerator() (which is not final) rather than directly accessing the field.

Seems to me that hashCode() has no reason to use the getters - or if it does, then equals
should do so too.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message