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

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

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2016.8
    • Component/s: config-api
    • Labels:
      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bob.mcwhirter Bob McWhirter
                Reporter:
                kylin Kylin Soong
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: