Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-2

Code generator generates uncompilable code for valid model

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 35

    Description

      Using the attached model, the codegeneration succeeds, but the compilation fails with:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project bgp-parser-api: Compilation failure: Compilation failure:
      [ERROR] /home/nite/bgpcep/bgp/parser-api/target/generated-sources/sal/org/opendaylight/yang/gen/v1/urn/cisco/params/xml/ns/yang/controller/bgpls/rev201387/BgplsPduBuilder.java:[8,102] cannot find symbol
      [ERROR] symbol: class LinkStateAttribute
      [ERROR] location: package org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.controller.bgpls.rev201387.bgpls.pdu
      [ERROR] /home/nite/bgpcep/bgp/parser-api/target/generated-sources/sal/org/opendaylight/yang/gen/v1/urn/cisco/params/xml/ns/yang/controller/bgpls/rev201387/BgplsPduBuilder.java:[15,13] cannot find symbol
      [ERROR] symbol: class LinkStateAttribute
      [ERROR] location: class org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.controller.bgpls.rev201387.BgplsPduBuilder
      [ERROR] /home/nite/bgpcep/bgp/parser-api/target/generated-sources/sal/org/opendaylight/yang/gen/v1/urn/cisco/params/xml/ns/yang/controller/bgpls/rev201387/BgplsPdu.java:[8,102] cannot find symbol
      [ERROR] symbol: class LinkStateAttribute
      [ERROR] location: package org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.controller.bgpls.rev201387.bgpls.pdu
      [ERROR] /home/nite/bgpcep/bgp/parser-api/target/generated-sources/sal/org/opendaylight/yang/gen/v1/urn/cisco/params/xml/ns/yang/controller/bgpls/rev201387/BgplsPduBuilder.java:[29,50] cannot find symbol
      [ERROR] symbol: class LinkStateAttribute
      [ERROR] location: class org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.controller.bgpls.rev201387.BgplsPduBuilder
      [ERROR] /home/nite/bgpcep/bgp/parser-api/target/generated-sources/sal/org/opendaylight/yang/gen/v1/urn/cisco/params/xml/ns/yang/controller/bgpls/rev201387/BgplsPdu.java:[20,5] cannot find symbol
      [ERROR] symbol: class LinkStateAttribute
      [ERROR] location: interface org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.controller.bgpls.rev201387.BgplsPdu
      [ERROR] /home/nite/bgpcep/bgp/parser-api/target/generated-sources/sal/org/opendaylight/yang/gen/v1/urn/cisco/params/xml/ns/yang/controller/bgpls/rev201387/BgplsPduBuilder.java:[52,17] cannot find symbol
      [ERROR] symbol: class LinkStateAttribute
      [ERROR] location: class org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.controller.bgpls.rev201387.BgplsPduBuilder.BgplsPduImpl
      [ERROR] /home/nite/bgpcep/bgp/parser-api/target/generated-sources/sal/org/opendaylight/yang/gen/v1/urn/cisco/params/xml/ns/yang/controller/bgpls/rev201387/BgplsPduBuilder.java:[75,16] cannot find symbol
      [ERROR] symbol: class LinkStateAttribute
      [ERROR] location: class org.opendaylight.yang.gen.v1.urn.cisco.params.xml.ns.yang.controller.bgpls.rev201387.BgplsPduBuilder.BgplsPduImpl
      [ERROR] -> [Help 1]

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: