[dna-issues] [JBoss JIRA] Resolved: (DNA-81) Path.SELF_XXX classes have inconsistent hashcode and equals methods
Johnny Verhaeg (JIRA)
jira-events at lists.jboss.org
Mon Jun 2 15:57:21 EDT 2008
[ http://jira.jboss.com/jira/browse/DNA-81?page=all ]
Johnny Verhaeg resolved DNA-81.
-------------------------------
Resolution: Done
Changed SELF and PARENT constants to use appropriate instances of BasicXXX
> 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