Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-599

Yangtools produces non-compilable code when enum type has "=" sign

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Duplicate
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    • 5672

    Description

      This was noticed in Lithium-based yangtools.

      For example:
      enum "L-CSR-10M-APP-3Y=";

      This will produce something like:

      public enum VnfModel {
      LCSR10MAPP3Y=(7),

      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?

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              Unassigned Unassigned
              rgoulding Ryan Goulding
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: