[MDSAL-1] Binding Specification: Grouping, data, typedef and identity namespaces collide Created: 06/Nov/13 Updated: 09/Mar/18 Resolved: 10/Mar/17 |
|
| Status: | Resolved |
| Project: | mdsal |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | ||
| Reporter: | Robert Varga | Assignee: | Jakub Toth |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Issue Links: |
|
||||||||||||||||||||||||||||||||
| Description |
|
Simple yang of: grouping foo-input { } rpc foo { results in a class in the form of 'interface FooInput extends FooInput' which fails to compile. |
| Comments |
| Comment by Robert Varga [ 21/Jan/14 ] |
|
This will be addressed in next version of binding specification. |
| Comment by Robert Varga [ 31/Jul/14 ] |
|
There are two possible options how to address this:
|
| Comment by Vratko Polak [ 06/Jul/16 ] |
|
An example without grouping, in combination with case-insensitiveness of first letter: typedef Foo { type string; } container foo { } |
| Comment by Jakub Toth [ 09/Mar/17 ] |
|
This should be fixed by https://git.opendaylight.org/gerrit/#/c/52007/27. JUnit tests example:
|
| Comment by Jakub Toth [ 09/Mar/17 ] |
|
(In reply to Robert Varga from comment #0) > } So after use of NonJavaCharsConverter from https://git.opendaylight.org/gerrit/#/c/52007/27 this will never happen. The result will -> 'interface FooInput extends FooInput1' -> acceptable |
| Comment by Jakub Toth [ 09/Mar/17 ] |
|
(In reply to Vratko Polák from comment #6) > container foo { > } The same here. After use of NonJavaCharsConverter will be result -> 'Foo and the next one Foo (or foo or fOo ..) will be Foo1' |