DTOs for anydata/anyxml are not generated within a list 05/86605/3
authorwusandi <wusandi@163.com>
Wed, 25 Dec 2019 12:04:16 +0000 (20:04 +0800)
committerRobert Varga <nite@hq.sk>
Sat, 28 Dec 2019 21:04:52 +0000 (21:04 +0000)
commit4df2f71dd1bfc29cd5773d1cd2609c91a002e2b1
treedc2f484fd797804bd36ca6109b09a45eca558372
parentf2a58cee9cd5f17f8c9338a2359a063246b823d2
DTOs for anydata/anyxml are not generated within a list

Code generation for container and list statements follows different
code paths and we have missed a hook in the latter to generate
opaque objects.

JIRA: MDSAL-506
Change-Id: I25a54362ceb09937ffe796081660afe7fa1d6bb2
Signed-off-by: wusandi <wusandi@163.com>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit e905b3d4792076251ddc276fa248e441bba157b2)
binding/mdsal-binding-generator-impl/src/main/java/org/opendaylight/mdsal/binding/generator/impl/AbstractTypeGenerator.java
binding/mdsal-binding-generator-impl/src/test/java/org/opendaylight/mdsal/binding/generator/impl/Mdsal506Test.java [new file with mode: 0644]
binding/mdsal-binding-generator-impl/src/test/resources/mdsal506.yang [new file with mode: 0644]
binding/mdsal-binding-java-api-generator/src/test/java/org/opendaylight/mdsal/binding/java/api/generator/test/CompilationTest.java