Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-572

"Cast" model nodes in AttributeDefinition validateOperation()

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 9.0.0.Beta1
    • 8.0.0.Alpha1
    • Management
    • None

      If the ModelType of a node in an operation does not match the defined type for the model, but is properly convertible, convert it so we store the expected type in the model.

      For example, if someone passed in ModelType.LONG or ModelType.BIG_INTEGER but the model stores INT, store an INT.

      This can be done after the validator for the AD has been invoked. The validator will have ensured that the "cast" is correct.

              ehugonne1@redhat.com Emmanuel Hugonnet
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: