Details
-
Bug
-
Status: Resolved
-
Medium
-
Resolution: Done
-
None
-
None
Description
A slightly contorted use case of:
container foo {
leaf bar {
type union {
type enumeration {
enum "foo";
}
type string {
length 2;
}
type union {
type enumeration {
enum bar;
}
type string {
length 1;
}
}
}
}
}
results in a failure to compile:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project mdsal-binding-test-model: Compilation failure [ERROR] /home/nite/odl/mdsal/binding/mdsal-binding-test-model/target/generated-sources/mdsal-binding/org/opendaylight/yang/gen/v1/opendaylight/nested/types/norev/Foo.java:[313,35] cannot find symbol [ERROR] symbol: method getValue() [ERROR] location: variable _bar1 of type org.opendaylight.yang.gen.v1.opendaylight.nested.types.norev.Foo.Bar.Bar1
Attachments
Issue Links
- is blocked by
-
MDSAL-321 Binding V1 generates incorrect code for nested classes
-
- Resolved
-