Fix PathExpressionParser predicate path handling 73/86573/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 25 Dec 2019 20:58:24 +0000 (21:58 +0100)
committerRobert Varga <nite@hq.sk>
Wed, 25 Dec 2019 21:58:38 +0000 (21:58 +0000)
commit9eab935cf401aa381a21febbc71f63579cd438cc
treee58210efe0a3194e95aa4da1e5b3314a4ebc34a5
parentfcb77f8e818d6c6016ffe09b5fd67b20c4789c48
Fix PathExpressionParser predicate path handling

Handling of a predicate was wrong in that the right-handside
involving a current() call did not correctly predicates.

This turns out to be a simple typo in two places, fix it and add
an explicit test.

JIRA: YANGTOOLS-1053
Change-Id: I54bac10cdd508503ad896edd628ffa436173ca6b
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 90457a20b9d0f6a7652563781d04c19002d29a4e)
yang/yang-parser-rfc7950/src/main/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/path/PathExpressionParser.java
yang/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/parser/rfc7950/stmt/path/PathExpressionParserTest.java