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

Binding V1 generates incorrect code for nested classes

    XMLWordPrintable

Details

    Description

      A simple test model:

          container foo {
              leaf foo {
                  type enumeration {
                      enum "foo";
                  }
              }
          }
      

      results in compilation failure:

      [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: 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:[98,69] cannot find symbol
      [ERROR]   symbol:   class Foo
      [ERROR]   location: interface org.opendaylight.yang.gen.v1.opendaylight.nested.types.norev.Foo
      [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:[31,12] interface org.opendaylight.yang.gen.v1.opendaylight.nested.types.norev.Foo is already defined in package org.opendaylight.yang.gen.v1.opendaylight.nested.types.norev
      

      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: