BUG-1555: skip choices which are not valid in a particular context 20/10020/1
authorRobert Varga <rovarga@cisco.com>
Mon, 18 Aug 2014 11:44:43 +0000 (13:44 +0200)
committerRobert Varga <rovarga@cisco.com>
Mon, 18 Aug 2014 11:44:43 +0000 (13:44 +0200)
commit71ca6beb42a2bf2e59540a7a6a27c2c456ae0a03
tree3497bdebecd4b8574d72ddf4585112a489162978
parentbc6bce08b9cc93775abeb6dcdc15670c037d5e4d
BUG-1555: skip choices which are not valid in a particular context

We are enumerating the use of a case in all the possible contexts, which
may partially fail. Instead of failing completely, just skip the
offending case.

Change-Id: Icbf137266784e0f469a258b2bb312db4e01bd8f6
Signed-off-by: Robert Varga <rovarga@cisco.com>
code-generator/binding-data-codec/src/main/java/org/opendaylight/yangtools/binding/data/codec/impl/ChoiceNodeCodecContext.java
code-generator/binding-generator-impl/src/main/java/org/opendaylight/yangtools/sal/binding/generator/util/BindingRuntimeContext.java