In the current implementation of SpEL's Indexer, the exitTypeDescriptor is sometimes ignored when checking whether the expression is compilable, and sometimes the exitTypeDescriptor is tracked for a failed evaluation attempt.

That behavior results in attempts to compile expressions which cannot be compiled, which should be avoided.