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
Reporter: Johnny Verhaeg
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