Bug 4079: Unable to compile pattern defined in module 80/26080/14
authorIgor Foltin <ifoltin@cisco.com>
Fri, 2 Oct 2015 11:46:24 +0000 (13:46 +0200)
committerGerrit Code Review <gerrit@opendaylight.org>
Fri, 18 Dec 2015 08:22:51 +0000 (08:22 +0000)
commit3fb9f39b35a0890f3c905ac409673b0692ba5d63
tree709dc2dcca58fd81b9511dd056e76c53320ce8d0
parentb5baf0c5df8e298a4c50197038c2dd2a6d71abb1
Bug 4079: Unable to compile pattern defined in module
          when using Unicode blocks

In the XML Schema specification, Unicode character blocks are
matched by "\p{Is...}", whereas Java expects "\p{In...}".
This change has been added and tested.

Fixed handling of possible false replacements.
The pattern is now compiled ahead of time.

Change-Id: I817e61c3f938166f8013e1733f7c7e4fb80faaf6
Signed-off-by: Igor Foltin <igor.foltin@pantheon.sk>
Signed-off-by: Igor Foltin <ifoltin@cisco.com>
yang/yang-parser-impl/src/main/java/org/opendaylight/yangtools/yang/parser/impl/ParserListenerUtils.java
yang/yang-parser-impl/src/test/java/org/opendaylight/yangtools/yang/parser/impl/Bug4079Test.java [new file with mode: 0644]
yang/yang-parser-impl/src/test/resources/bugs/bug4079/bug4079-test.yang [new file with mode: 0644]