Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "EL Validation Rules"

Line 46: Line 46:
 
| Warning
 
| Warning
 
|
 
|
|-
+
|
 
| TERNARY_OP_CANNOT_COERCE_CHOICE_TO_BOOLEAN_ID
 
| TERNARY_OP_CANNOT_COERCE_CHOICE_TO_BOOLEAN_ID
 
| Could not coerce choice argument to boolean
 
| Could not coerce choice argument to boolean
Line 53: Line 53:
 
|-
 
|-
 
| BINARY_OP_BOTH_OPERANDS_NULL
 
| BINARY_OP_BOTH_OPERANDS_NULL
| <pre><operator></pre> with operand 'null' is always zero
+
| &lt;pre&gt;&lt;operator&gt;&lt;/pre&gt; with operand 'null' is always zero
 
| Warning
 
| Warning
 
|
 
|
 
|-
 
|-
 
| BINARY_OP_COULD_NOT_MAKE_NUMERIC_COERCION
 
| BINARY_OP_COULD_NOT_MAKE_NUMERIC_COERCION
| Could not make numeric conversion for <pre><name></pre> operation
+
| Could not make numeric conversion for &lt;pre&gt;&lt;name&gt;&lt;/pre&gt; operation
 
| Error
 
| Error
 
|
 
|
 
|-
 
|-
 
| BINARY_OP_CONSTANT_EXPRESSION_ALWAYS_EVAL_SAME
 
| BINARY_OP_CONSTANT_EXPRESSION_ALWAYS_EVAL_SAME
| This <pre><operation></pre> will always result a value of <pre><constant-value></pre>
+
| This &lt;pre&gt;&lt;operation&gt;&lt;/pre&gt; will always result a value of &lt;pre&gt;&lt;constant-value&gt;&lt;/pre&gt;
 
| Warning
 
| Warning
 
|
 
|
 
|-
 
|-
 
| BINARY_OP_EQUALITY_COMP_WITH_NULL_ALWAYS_EVAL_SAME
 
| BINARY_OP_EQUALITY_COMP_WITH_NULL_ALWAYS_EVAL_SAME
| Comparisons with null always evaluates to <pre><constant-value></pre>
+
| Comparisons with null always evaluates to &lt;pre&gt;&lt;constant-value&gt;&lt;/pre&gt;
 
| Warning
 
| Warning
 
|  
 
|  
 
|-
 
|-
 
| BINARY_OP_CANNOT_COERCE_ARGUMENT_TO_BOOLEAN
 
| BINARY_OP_CANNOT_COERCE_ARGUMENT_TO_BOOLEAN
| Cannot coerce <pre><name></pre> argument to boolean
+
| Cannot coerce &lt;pre&gt;&lt;name&gt;&lt;/pre&gt; argument to boolean
 
| Error
 
| Error
 
|
 
|
 
|-
 
|-
 
| BINARY_OP_FIRST_ARGUMENT_SHORT_CIRCUITS
 
| BINARY_OP_FIRST_ARGUMENT_SHORT_CIRCUITS
| The first boolean argument is always <pre><true|false></pre>.  The second argument will never be evaluated and the <pre><operation></pre> to boolean will always evaluate to <pre><true|false></pre>
+
| The first boolean argument is always &lt;pre&gt;&lt;true|false&gt;&lt;/pre&gt;.  The second argument will never be evaluated and the &lt;pre&gt;&lt;operation&gt;&lt;/pre&gt; to boolean will always evaluate to &lt;pre&gt;&lt;true|false&gt;&lt;/pre&gt;
 
| Warning
 
| Warning
 
|
 
|
 
|-
 
|-
 
| BINARY_OP_SECOND_ARGUMENT_ALWAYS_EVAL_SAME
 
| BINARY_OP_SECOND_ARGUMENT_ALWAYS_EVAL_SAME
| The second boolean argument is always <pre><true|false></pre>.  The <pre><operation></pre> will always evaluate to <pre><true|false></pre>
+
| The second boolean argument is always &lt;pre&gt;&lt;true|false&gt;&lt;/pre&gt;.  The &lt;pre&gt;&lt;operation&gt;&lt;/pre&gt; will always evaluate to &lt;pre&gt;&lt;true|false&gt;&lt;/pre&gt;
 
| Warning
 
| Warning
 
|
 
|
Line 98: Line 98:
 
|-
 
|-
 
| UNARY_OP_CONSTANT_EXPRESSION_EVAL_SAME
 
| UNARY_OP_CONSTANT_EXPRESSION_EVAL_SAME
| This <operation> will always result a value of <constant-value>
+
| This &lt;operation&gt; will always result a value of &lt;constant-value&gt;
 
| Warning
 
| Warning
 
|
 
|
Line 113: Line 113:
 
|-
 
|-
 
| UNARY_OP_STRING_CONVERSION_NOT_GUARANTEED
 
| UNARY_OP_STRING_CONVERSION_NOT_GUARANTEED
| Type coercion for <name> operator not guaranteed for possible runtime types: <types>
+
| Type coercion for &lt;name&gt; operator not guaranteed for possible runtime types: &lt;types&gt;
 
| Warning
 
| Warning
 
|
 
|

Revision as of 20:00, 27 September 2006

Diagnostic Format Default Severity Notes
GENERAL_SYNTAX_ERROR Syntax error in EL Warning
EMPTY_EL_EXPRESSION Empty EL expression Warning
VM_ROOT_NAME_NOT_FOUND 'var' cannot be resolved Warning
VM_PROP_NAME_NOT_FOUND 'property' cannot be resolved as a member of 'var' Warning
CANNOT_APPLY_OPERATORS_TO_MB Cannot apply expression operators to method bindings Error
MISSING_CLOSING_EXPR_BRACKET Missing closing bracket on expression Error
POSSIBLE_DIV_BY_ZERO Possible division by zero Error
UNARY_OP_EMPTY_ALWAYS_FALSE_ON_TYPE This empty expression always evaluates to false. Only string, maps, arrays and collection have meaningful values for the empty operator Warning
UNARY_OP_CANNOT_COERCE_ARGUMENT_TO_BOOLEAN Not operator does not support type coercion. Warning TERNARY_OP_CANNOT_COERCE_CHOICE_TO_BOOLEAN_ID Could not coerce choice argument to boolean Error
BINARY_OP_BOTH_OPERANDS_NULL <pre><operator></pre> with operand 'null' is always zero Warning
BINARY_OP_COULD_NOT_MAKE_NUMERIC_COERCION Could not make numeric conversion for <pre><name></pre> operation Error
BINARY_OP_CONSTANT_EXPRESSION_ALWAYS_EVAL_SAME This <pre><operation></pre> will always result a value of <pre><constant-value></pre> Warning
BINARY_OP_EQUALITY_COMP_WITH_NULL_ALWAYS_EVAL_SAME Comparisons with null always evaluates to <pre><constant-value></pre> Warning
BINARY_OP_CANNOT_COERCE_ARGUMENT_TO_BOOLEAN Cannot coerce <pre><name></pre> argument to boolean Error
BINARY_OP_FIRST_ARGUMENT_SHORT_CIRCUITS false></pre>. The second argument will never be evaluated and the <pre><operation></pre> to boolean will always evaluate to <pre><true|false></pre> Warning
BINARY_OP_SECOND_ARGUMENT_ALWAYS_EVAL_SAME false></pre>. The <pre><operation></pre> will always evaluate to <pre><true|false></pre> Warning
BINARY_OP_NO_AVAILABLE_TYPE_COERCION Cannot coerce arguments for this operator Error
BINARY_OP_COULD_NOT_COERCE_LITERALS_TO_NUMBERS Could not coerce literals to numbers Error
UNARY_OP_CONSTANT_EXPRESSION_EVAL_SAME This <operation> will always result a value of <constant-value> Warning
UNARY_OP_MINUS_ON_NULL_ALWAYS_ZERO Unary minus applied to null is always zero Warning
UNARY_OP_COULD_NOT_MAKE_NUMERIC_COERCION Could not make numeric conversion for {0} operation Error
UNARY_OP_STRING_CONVERSION_NOT_GUARANTEED Type coercion for <name> operator not guaranteed for possible runtime types: <types> Warning
TERNARY_OP_CHOICE_IS_ALWAYS_SAME Choice argument is always {0}. {1} argument is always returned Warning

Back to the top