Make YangNamespaceContextNamespace global 27/92927/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 6 Oct 2020 18:47:55 +0000 (20:47 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 6 Oct 2020 18:49:56 +0000 (20:49 +0200)
commitcde92d4deb4fcc2446cca0d80fb0450e900aa914
treeb10cd06f1861ac2fecf9b4200238f8a8c6285e58
parent68de0c7ba2ad3c837b933602d1d124bf74b077d0
Make YangNamespaceContextNamespace global

The crux of the problem with not being able to resolve prefixes comes
from the fact we end up reusing the same context for both submodule
and module. Turn the namespace into a global one, keyed by the root
context.

JIRA: YANGTOOLS-1138
Change-Id: Ibdd1b4c2427fcf62a341e9ff15dddbd055ffa6fb
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/namespace/YangNamespaceContextNamespace.java