Bug 9005 - scope of model import prefix should be module/submodule 42/62142/1
authorPeter Kajsa <pkajsa@cisco.com>
Fri, 18 Aug 2017 10:24:32 +0000 (12:24 +0200)
committerPeter Kajsa <pkajsa@cisco.com>
Tue, 22 Aug 2017 09:08:20 +0000 (11:08 +0200)
commit81c8d73d4d85ef015a06145b2d4315fed8efb49d
treef13d1a5c69f67d07a0efab8b5e5e0c3acb61f1e1
parentdd691dfff8be8579f796d7ce4552c133d031e011
Bug 9005 - scope of model import prefix should be module/submodule

Yang parser includes all substatements of a submodule into a parent
module including all import statements of the submodule, what causes
mismatch of parent module imports.

Change-Id: I5c0b45348ca5e9f3ae54351c93e940135fe2b99d
Signed-off-by: Peter Kajsa <pkajsa@cisco.com>
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/rfc6020/effective/AbstractEffectiveModule.java
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/Bug9005Test.java [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/bugs/bug9005/bar-1@2000-01-01.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/bugs/bug9005/bar-2@2000-01-02.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/bugs/bug9005/foo@2017-07-07.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/bugs/bug9005/sub-foo@2017-07-07.yang [new file with mode: 0644]