You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Stefan Guggisberg (JIRA)" <ji...@apache.org> on 2006/02/28 15:46:49 UTC

[jira] Assigned: (JCR-329) NodeReferencesId.equals() is not symetric

     [ http://issues.apache.org/jira/browse/JCR-329?page=all ]

Stefan Guggisberg reassigned JCR-329:
-------------------------------------

    Assign To: Stefan Guggisberg

> NodeReferencesId.equals() is not symetric
> -----------------------------------------
>
>          Key: JCR-329
>          URL: http://issues.apache.org/jira/browse/JCR-329
>      Project: Jackrabbit
>         Type: Improvement
>     Versions: 0.9
>     Reporter: Marcel Reutegger
>     Assignee: Stefan Guggisberg
>     Priority: Minor
>      Fix For: 1.0
>  Attachments: NodeReferencesId.patch
>
> NodeReferencesId.equals() is not symetric when equality is tested against a NodeId.
> Code example:
> UUID uuid = UUID.randomUUID();
> NodeId id = new NodeId(uuid);
> NodeReferencesId refId = new NodeReferencesId(uuid);
> id.equals(refId); // will return true
> refId.equals(id); // will return false
> NodeReferencesId should be decouled from the ItemId hierarchy. The class NodeReferences already does not extend from NodeState which makes perfectly sense. So, the same should apply to the identifier of NodeReferences.
> The attached patch to NodeReferencesId also requires minor changes to some of the persistence managers.

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