Only the Spring framework, not the Java compiler, parses SpEL
expression inside Spring annotations. This means that the Java compiler
does not detect invalid SpEL
expressions during compile time. They will cause exceptions during runtime instead, or even fail silently
when Spring interprets the expression as a simple string literal.
Exceptions
This rule reports syntactical errors in SpEL
expressions but does not consider semantic errors, such as unknown identifiers or
incompatible operand data types.