]
Brian Stansberry reassigned WFLY-572:
-------------------------------------
Assignee: Emmanuel Hugonnet
"Cast" model nodes in AttributeDefinition
validateOperation()
-------------------------------------------------------------
Key: WFLY-572
URL:
https://issues.jboss.org/browse/WFLY-572
Project: WildFly
Issue Type: Task
Security Level: Public(Everyone can see)
Components: Domain Management
Affects Versions: 8.0.0.Alpha1
Reporter: Brian Stansberry
Assignee: Emmanuel Hugonnet
Fix For: 9.0.0.CR1
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.