[
https://jira.jboss.org/jira/browse/DNA-197?page=com.atlassian.jira.plugin...
]
Johnny Verhaeg resolved DNA-197.
--------------------------------
Resolution: Done
Changed BasicPath to return null for root path's ancestor and updated SimpleRepository
to account for a path having a null parent.
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