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

StmtNamespaceContext is retained needlessly in xpath expressions

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: