Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-396

In HierarchicalConfiguration$Node visits the ConfigurationKey points to the parent path in visitAfterChildren call

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6
    • Fix Version/s: 1.7
    • Component/s: None
    • Labels:
      None

      Description

      When visiting a child the key is aggregated to have the child node name, and a call to visitBeforeChildren and grandChildren's visits are made.

      However, before calling visitAfterChildren, the resetting of the key to that of it's parent's, seems inconsistent.

      Last lines in visit(NodeVisitor visitor, ConfigurationKey key)

      if (key != null)

      { key.setLength(length); }

      visitor.visitAfterChildren(this, key);

        Attachments

          Activity

            People

            • Assignee:
              oheger Oliver Heger
              Reporter:
              vasanthaman Vasanth Amana
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified