[dna-issues] [JBoss JIRA] Updated: (DNA-197) BasicPath.getAncestor() should return null for root path
Johnny Verhaeg (JIRA)
jira-events at lists.jboss.org
Mon Aug 11 16:09:50 EDT 2008
[ https://jira.jboss.org/jira/browse/DNA-197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Johnny Verhaeg updated DNA-197:
-------------------------------
Component/s: SPI
Fix Version/s: 0.2
Affects Version/s: 0.1
> BasicPath.getAncestor() should return null for root path
> --------------------------------------------------------
>
> Key: DNA-197
> URL: https://jira.jboss.org/jira/browse/DNA-197
> Project: DNA
> Issue Type: Bug
> Components: SPI
> Affects Versions: 0.1
> Reporter: Johnny Verhaeg
> Assignee: Johnny Verhaeg
> Fix For: 0.2
>
>
> This method currently returns the root path itself in an attempt to make method chaining more consistent, but this makes the semantics of getAncestor() incorrect for the root path and the behavior inconsistent with the corresponding isAncestorOf() method, which returns false for rootPath.isAncestorOf(rootPath). getAncestor(int depth) will need to be changed accordingly.
--
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