[YANGTOOLS-2] Code generator generates uncompilable code for valid model Created: 07/Aug/13  Updated: 10/Apr/22  Resolved: 11/Sep/13

Status: Resolved
Project: yangtools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Robert Varga Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Attachments: File bgpls-nlri.yang    
External issue ID: 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]



 Comments   
Comment by Robert Varga [ 07/Aug/13 ]

Attachment bgpls-nlri.yang has been added with description: Triggering model

Generated at Wed Feb 07 20:51:59 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.