Community
Participate
Working Groups
Add support for the Ternary Operator.
Support for ternary has been released. For AST there is a new type "TernaryExpression" (MOF already had a corresponding type). For the parser we had to put a temporary workaround for a problem with ISA/AS expressions containing nullable types in the ternary's condition. To do it the right way it's going to require massive changes to the parser, AST, bindings, validation, etc, and we'll do that later on. This change is also necessary for other things, and will have core APIs represent nullability more correctly (types are not nullable in EDT, rather it's fields, parameters, etc, that are nullable - the exception being that array type's elements can be nullable). Test cases have been added to the validation JUnit suite.
I've opened two bugs for remaining pieces of the ternary support: bug 376647 and bug 376645.