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

V1 codegen generates enum constants that are not valid Java identifiers

XMLWordPrintable

      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.

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

              Created:
              Updated:
              Resolved: