Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-1115

StmtNamespaceContext is retained needlessly in xpath expressions

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • 5.0.4, 4.0.11, 3.0.13
    • xpath
    • None

    Description

      WhenEffectiveStatementImpl with an expression ends up retaining AntlrYangXPathExpression.Qualifed.

      This class retains a reference StmtNamespaceContext, which in turn ends up retaining quite a bit of BuildGlobalContext.

      While there are cases when this would be necessary, if an XPathExpression does not contain a YangLiteralExpr there is no way the context could/should be referenced, hence we should be losing it and throw ... IllegalArgumentException or similar – as the YangLiteralExpr is invalid anyway.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              rovarga Robert Varga
              rovarga Robert Varga
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: