[YANGTOOLS-599] Yangtools produces non-compilable code when enum type has "=" sign Created: 05/Apr/16 Updated: 10/Apr/22 Resolved: 06/Apr/16 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Ryan Goulding | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Issue Links: |
|
||||||||
| External issue ID: | 5672 | ||||||||
| Description |
|
This was noticed in Lithium-based yangtools. For example: This will produce something like: public enum VnfModel { Which java will obviously bark at (since it contains an equal sign. I know that RFC6020 suggests against using Unicode control codes, but "=" is not one so should be a valid character. A solution may be to replace "=" with a sentinel value in the compiled code? |
| Comments |
| Comment by Ryan Goulding [ 05/Apr/16 ] |
| Comment by Robert Varga [ 06/Apr/16 ] |
|
This is a duplicate of BUG-2332. |