BUG-6150: add an import statement special-case 58/48258/1
authorVratko Polak <vrpolak@cisco.com>
Thu, 10 Nov 2016 13:41:15 +0000 (14:41 +0100)
committerRobert Varga <rovarga@cisco.com>
Fri, 11 Nov 2016 13:28:18 +0000 (14:28 +0100)
commitcbe54fe28185409bba130b076343791846fdde5c
treea7798c7083b488092605313785cd591934501ff0
parentf109466c50f313fe3b7ea172a3643c1ce6a8ea84
BUG-6150: add an import statement special-case

This is just a hack to get the bug unblocked, a follow-up
patch is needed to really fix the underlying assumptions
about when a statement should be populated into the map.

Unit tests added.

Change-Id: I80273f1971981d62214e3cabfe687d5fcb61abd3
Signed-off-by: Robert Varga <rovarga@cisco.com>
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
(cherry picked from commit bbce2ddf4f0cfced8ea5ad85d709ce62ffdea41b)
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/reactor/ContextBuilder.java
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/reactor/StatementContextBase.java
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/AugmentArgumentParsingTest.java
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/stmt/Bug6150Test.java [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/bugs/bug6150/aug-first.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/bugs/bug6150/aug-second.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/bugs/bug6150/target.yang [new file with mode: 0644]