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

Audit users of NamespaceBehaviour.global()

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Medium Medium
    • 10.0.0
    • None
    • parser

      There are a few global namespaces, identified by invoking NamespaceBehaviour.global() to derive their behaviour.

      Search for all users of such namespaces and look how they access them. In the end we want all such users to go through a a direct lookup of root.

      From API safety perspective, I think the best option would be to mark global namespaces with GlobalNamespace and require NamespaceBehavior.global(Class <? extends GlobalNamespace).

      This needs some investigation, perhaps we should expose root to all places where we send StmtContext.

       

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

              Created:
              Updated:
              Resolved: