Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-309

V1 codegen generates enum constants that are not valid Java identifiers

    XMLWordPrintable

Details

    Description

      If enum value is not valid Java identifier, e.g.:

            type enumeration {
              enum '*'

      {           description           "Any source address.";         }

            }

      V1 code generator produces invalid enum constant identifier:

       

      public class Ipv4MulticastSourceAddress
       implements Serializable {
          private static final long serialVersionUID = -1734346858985024066L;
          public enum Enumeration {
              /**
               * Any source address.
               *
               */
              (0, "")
              ;
         [...]

       

      hence compilation fails.

      Attachments

        Issue Links

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

          Activity

            People

              rovarga Robert Varga
              mgradzki Marek Gradzki
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: