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
-
| # | Subject | Branch | Project | Status | CR | V |
|---|---|---|---|---|---|---|
| 69610,8 | Rework inlined union generation | master | mdsal | Status: MERGED | +2 | +1 |
| 69669,1 | Fixup test for MDSAL-320 | master | mdsal | Status: MERGED | +2 | +1 |
| 69768,1 | Revert "Fixup test for MDSAL-320" | master | mdsal | Status: MERGED | +2 | +1 |
| 70633,5 | MDSAL-320 Mapping type collisions between yang built-in uint* and int* | master | mdsal | Status: MERGED | +2 | +1 |
| 71682,8 | Rework inlined union generation | master | mdsal | Status: MERGED | +2 | +1 |
| 74592,5 | WIP: Rework inlined union generation | master | mdsal | Status: ABANDONED | 0 | -1 |