[dna-issues] [JBoss JIRA] Resolved: (DNA-220) Path segment without an index is not considered equal to a segment with an index of 1

Randall Hauch (JIRA) jira-events at lists.jboss.org
Wed Sep 10 14:06:52 EDT 2008


     [ https://jira.jboss.org/jira/browse/DNA-220?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Randall Hauch resolved DNA-220.
-------------------------------

    Resolution: Done


Changed the behavior of BasicPathSegment.equals(...) so that a segment without an index is equivalent to another segment with the same name but with an index of 1.  Also corrected a test case of the InMemory connector.

> Path segment without an index is not considered equal to a segment with an index of 1 
> --------------------------------------------------------------------------------------
>
>                 Key: DNA-220
>                 URL: https://jira.jboss.org/jira/browse/DNA-220
>             Project: DNA
>          Issue Type: Bug
>          Components: SPI
>    Affects Versions: 0.2
>            Reporter: Randall Hauch
>            Assignee: Randall Hauch
>             Fix For: 0.2
>
>
> According to JCR, a path without a same-name-sibling index should be treated equivalently to a path where the same-name-sibling indexes are all 1.  For example, "/a/b/c" should be equivalent to "/a[1]/b[1]/c[1]".  (See section 4.3.1 of the JSR-170 specification for details.)  This is not the case with the BasicPathSegment implementation of Path.Segment.

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

        



More information about the dna-issues mailing list