Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-93

Tree has wrong parent after move

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.3
    • core
    • None

    Description

      After a move operation Tree.getParent() still returns the old parent.

      Tree x = r.getChild("x");
      Tree y = r.getChild("y");
      
      root.move("x", "y/x");
      assertEquals("y", x.getParent().getName());  // Fails
      

      Attachments

        Activity

          People

            mduerig Michael Dürig
            mduerig Michael Dürig
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: