Bugfix: Resolving of extension arguments. 08/9808/3
authorLukas Sedlak <lsedlak@cisco.com>
Fri, 8 Aug 2014 12:33:38 +0000 (14:33 +0200)
committerLukas Sedlak <lsedlak@cisco.com>
Wed, 13 Aug 2014 08:44:55 +0000 (10:44 +0200)
commit90255d4bd82b4339dcd04e5bb07abde0b861aa0b
tree3a31d85a835ec615d30ad8b2e240fabe5fcf0562
parent7ea2c0647d716cf113ed254bb73d4379158135c0
Bugfix: Resolving of extension arguments.

Fixed methods parseQName and handleUnknownNode in YangParserListenerImpl class. Now if extension contains ":"
as argument value and string before ":" doesn't represent prefix for import the argument will be parsed as ordinary
string and will not throw exception.
Log level in parseQName has been changed from warn to debug.

Tests in yang-parser-impl has been modified since they're lacked of import definitions of extensions in yang modules.

Change-Id: I84debed2bef1a0694a7019c296433b8b089e6d80
Signed-off-by: Lukas Sedlak <lsedlak@cisco.com>
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/impl/YangParserListenerImpl.java
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/parser/impl/Bug1412Test.java
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/parser/impl/Bug1413Test.java
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/parser/impl/ParsingExtensionValueTest.java [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/bugs/bug1412/bug1412.yang
yang/yang-parser-impl/src/test/resources/bugs/bug1412/extensions.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/bugs/bug1413/bug1413.yang
yang/yang-parser-impl/src/test/resources/bugs/bug1413/extensions.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/extensions/ext-typedef.yang [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/extensions/ext-use.yang [new file with mode: 0644]