You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2019/06/07 09:32:00 UTC

[jira] [Closed] (DIRSERVER-2089) AttributeType breaks the equals/hashCode override contract

     [ https://issues.apache.org/jira/browse/DIRSERVER-2089?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny closed DIRSERVER-2089.
----------------------------------------

> AttributeType breaks the equals/hashCode override contract
> ----------------------------------------------------------
>
>                 Key: DIRSERVER-2089
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-2089
>             Project: Directory ApacheDS
>          Issue Type: Bug
>            Reporter: lucas theisen
>            Priority: Major
>             Fix For: 2.0.0.AM26
>
>
> {{AttributeType}} contains an override of the {{equals}} method without an accompanying override to {{hashCode}}.  Per the javadoc on {{Object.equals}}:
> {quote}
> Note that it is generally necessary to override the hashCode method whenever this method is overridden, so as to maintain the general contract for the hashCode method, which states that equal objects must have equal hash codes.
> {quote}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org