[MDSAL-207] grouping and leaf Can't have the same name? Created: 10/Nov/16  Updated: 09/Mar/18  Resolved: 10/Nov/16

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

Type: Bug
Reporter: zhuweisheng Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issue Links:
Duplicate
duplicates MDSAL-1 Binding Specification: Grouping, data... Resolved
External issue ID: 7135

 Description   

I get a Error when trying to parse a yang file like below:
grouping pmf {
leaf pmf {
type enumeration {
enum optional

{ description "pmf optional"; }

enum mandatory

{ description "pmf mandatory"; }

enum disable

{ description "undo pmf"; }

}
default disable;
}
}

the error is:
[ERROR] /D:/git/sd-campus/controller-naas/platform/southbound/adapter/synchronization-adapter/synchronization-adapter-model/src/main/yang-gen-sal/org/opendaylight/yang/gen/v1/com/huawei/controller/southbound/synchronization/rev160412/Pmf.java:[86,96] can not find symble
[ERROR] symble: class Pmf
[ERROR] position: interface org.opendaylight.yang.gen.v1.com.huawei.controller.southbound.synchronization.rev160412.Pmf
[ERROR] /D:/git/sd-campus/controller-naas/platform/southbound/adapter/synchronization-adapter/synchronization-adapter-model/src/main/yang-gen-sal/org/opendaylight/yang/gen/v1/com/huawei/controller/southbound/synchronization/rev160412/Pmf.java:[30,12] have define the interface in the package: org.opendaylight.yang.gen.v1.com.huawei.controller.southbound.synchronization.rev160412org.opendaylight.yang.gen.v1.com.huawei.controller.southbound.synchronization.rev160412.Pmf

Seems to be groung and leaf generated class of the same name, so the conflict.
Is this a bug in yangtools?


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