Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-194

BasicPath.getAncestor() should return null for root path

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 0.2
    • 0.1
    • Graph (2.x)
    • None

      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.

              teiid John Verhaeg (Inactive)
              teiid John Verhaeg (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: