Bug 9005 - scope of model import prefix should be module/submodule 44/62144/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 10:41:20 +0000 (12:41 +0200)
commit8b3dc57efefedaaa422c75eabca99ba0953a06b2
treefb92a699cbe62013bb9989228ae4369c2bbd8b5d
parent6d56ef028aa9d143a04096abd3a82112eeef3314
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]