Bug 5396: Regex processing of yang models is broken. 89/36589/3
authorPeter Kajsa <pkajsa@cisco.com>
Tue, 22 Mar 2016 17:39:20 +0000 (18:39 +0100)
committerPeter Kajsa <pkajsa@cisco.com>
Thu, 24 Mar 2016 12:07:55 +0000 (12:07 +0000)
commit8a55083db823d07a808ba61c1b2c2f19f684d4c1
tree3759c4ec10b08c3ae24773d024251c9ecaf9d609
parentd7e7abf4f539179cc0bcdb45606c19ef48aadb87
Bug 5396: Regex processing of yang models is broken.

Yang statement parser should not replace type statement context by potentional
type statement context from the Map of context's substatements.

Change-Id: I9fa90f53bf8d7f9ebb269628abadeab1bf4c03b5
Signed-off-by: Peter Kajsa <pkajsa@cisco.com>
yang/yang-data-impl/src/test/java/org/opendaylight/yangtools/yang/data/impl/schema/transform/dom/serializer/Bug5396.java [new file with mode: 0644]
yang/yang-data-impl/src/test/resources/bug5396/xml/foo.xml [new file with mode: 0644]
yang/yang-data-impl/src/test/resources/bug5396/xml/foo2.xml [new file with mode: 0644]
yang/yang-data-impl/src/test/resources/bug5396/xml/foo3.xml [new file with mode: 0644]
yang/yang-data-impl/src/test/resources/bug5396/xml/foo4.xml [new file with mode: 0644]
yang/yang-data-impl/src/test/resources/bug5396/xml/foo5.xml [new file with mode: 0644]
yang/yang-data-impl/src/test/resources/bug5396/xml/invalid-foo.xml [new file with mode: 0644]
yang/yang-data-impl/src/test/resources/bug5396/yang/foo.yang [new file with mode: 0644]
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/test/Bug5396.java [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/bugs/bug5396/foo.yang [new file with mode: 0644]