[YANGTOOLS-130] Not able to define a list with identifier name "Class" in yang Created: 08/Apr/14  Updated: 10/Apr/22  Resolved: 01/Jul/14

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

Type: Bug
Reporter: Kanika Gupta Assignee: Jozef Gloncak
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Windows
Platform: PC


External issue ID: 680

 Description   

I am trying to define following construct in a yang file:

container configuration {
list class {
key "name";
leaf name

{ type string; }
leaf value { type string; }

}
}

Now, when I try to generate source using Maven, it gives below compilation error:

[ERROR] \target\generated-sources\sal\org\opendaylight\yang\gen\v1\yang03\rev150802\configuration\ClassBuilder.java:[14
,21] error: type Class does not take parameters

It appears that this construct is getting mapped to java.lang.Class

Reference thread:

https://lists.opendaylight.org/pipermail/controller-dev/2014-April/003604.html



 Comments   
Comment by Jozef Gloncak [ 30/Apr/14 ]

This patch should solve this problem
https://git.opendaylight.org/gerrit/#/c/5448/

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