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 2005/01/03 14:30:21 UTC

[jira] Resolved: (JCR-35) NodeTypeDefDiff compares to restrictive

     [ http://issues.apache.org/jira/browse/JCR-35?page=history ]
     
Stefan Guggisberg resolved JCR-35:
----------------------------------

    Resolution: Fixed

fixed in rev. 123964:

added NodeTypeDef#equals(Object)

> NodeTypeDefDiff compares to restrictive
> ---------------------------------------
>
>          Key: JCR-35
>          URL: http://issues.apache.org/jira/browse/JCR-35
>      Project: Jackrabbit
>         Type: Bug
>  Environment: Jackrabbit SVN Rev. 122969
>     Reporter: Felix Meschberger
>     Assignee: Stefan Guggisberg

>
> The NodeTypeDefDiff class is used to compare NodeTypeDef instances. Unfortunately this class reports two NodeTypeDef instances which are not equal but have no structural difference as having trivial changes. The correct result would be to have no modification at all.
> I suggest to modify the NodeTypeDefDiff.init() method such, that the initial type is "NONE" instead of "TRIVIAL" and to first compare the "hasOrderableChildNodes" first and raise the level to "TRIVIAL" if not equal. Next the rest of the current comparisons would follow.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira