Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-602

config-api-generator can not recongnize attribute start with number and short string

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Done
    • None
    • 2016.8
    • config-api
    • None

    Description

      In Teiid, the attribute 'ssl-authentication-mode' has 3 allowed values:

      [standalone@localhost:9990 /] /subsystem=teiid/transport=jdbc:write-attribute(name=ssl-authentication-mode,value=
      1-way  2-way  anonymous
      

      But config-api-generator can not recongnize '1-' and '2-', it ignore the '1-' and '2-', the generated souce code looks

      public static enum SslAuthenticationMode {
                      WAY("1-way"), WAY("2-way"), ANONYMOUS("anonymous");
                      private final String allowedValue;
      
                      /**
                       * Returns the allowed value for the management model.
                       * 
                       * @return the allowed model value
                       */
                      public String getAllowedValue() {
                              return allowedValue;
                      }
      
                      SslAuthenticationMode(java.lang.String allowedValue) {
                              this.allowedValue = allowedValue;
                      }
      
                      @Override
                      public String toString() {
                              return allowedValue;
                      }
              }
      

      Note above generated code can not compile success.

      Attachments

        Activity

          People

            bmcwhirt@redhat.com Bob McWhirter (Inactive)
            kylinsoong.1214@gmail.com Kylin Soong (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: