[dna-issues] [JBoss JIRA] Created: (DNA-81) Path.SELF_XXX classes have inconsistent hashcode and equals methods

Johnny Verhaeg (JIRA) jira-events at lists.jboss.org
Fri May 30 10:36:45 EDT 2008


Path.SELF_XXX classes have inconsistent hashcode and equals methods
-------------------------------------------------------------------

                 Key: DNA-81
                 URL: http://jira.jboss.com/jira/browse/DNA-81
             Project: DNA
          Issue Type: Bug
          Components: SPI
    Affects Versions: 0.1
            Reporter: Johnny Verhaeg
         Assigned To: Johnny Verhaeg
             Fix For: 0.2


They both implement equals, but not hashcode, causing a violation of the contract for Object.  The fix could obviously be to implement hashcode methods for each that are consistent with their equals methods, but these inner classes should really just implement the equivalent BasicXXX classes defined in the impl corresponding package, which would also fix some other minor differences such as returning different toString values.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the dna-issues mailing list