directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Knecht (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DIRSTUDIO-426) Overwritten hashCode() method should not use super.hashCode()
Date Wed, 12 Nov 2008 14:53:44 GMT

    [ https://issues.apache.org/jira/browse/DIRSTUDIO-426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12646919#action_12646919
] 

Felix Knecht commented on DIRSTUDIO-426:
----------------------------------------

Good catch!
See also http://www.ibm.com/developerworks/java/library/j-jtp05273.html

> Overwritten hashCode() method should not use super.hashCode()
> -------------------------------------------------------------
>
>                 Key: DIRSTUDIO-426
>                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-426
>             Project: Directory Studio
>          Issue Type: Improvement
>          Components: studio-ldapbrowser, studio-schemaeditor
>    Affects Versions: 1.3.0
>            Reporter: Pierre-Arnaud Marcelot
>            Assignee: Pierre-Arnaud Marcelot
>             Fix For: 1.3.1, 1.4.0
>
>
> Overwritten hashCode() method should not use super.hashCode() because it can cause issues
if two objects are equals but does not have the same hashCode.
> This problem impacts the following classes:
>     * /ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/StudioPagedResultsControl.java
>     * /schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/wrappers/AttributeTypeWrapper.java
>     * /schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/wrappers/Folder.java
>     * /schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/wrappers/ObjectClassWrapper.java
>     * /schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/wrappers/ProjectWrapper.java
>     * /schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/wrappers/SchemaErrorWrapper.java
>     * /schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/wrappers/SchemaWarningWrapper.java
>     * /schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/view/wrappers/SchemaWrapper.java

-- 
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