EL evaluates null Number expression as zero
Issue
Null EL expression (e.g. #{nullNumber}) is evaluated as zero instead of null when it is assigned to non-primitive Number type.
The system property org.apache.el.parser.COERCE_TO_ZERO has no effect.
Environment
- JBoss EAP 6
- Expression Language (EL) 2.1 / 2.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
