Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-320

Binding V1 fails to generate code for nested enumeration/union construct

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • Fluorine
    • Binding codegen
    • 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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              rovarga Robert Varga
              rovarga Robert Varga
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: