Open mkomko opened 1 month ago
@markt-asf Do you have any thoughts?
That looks like a reasonable interpretation of the current Javadoc. Fixing that would be an implementation issue rather than an EL API issue.
I think this is something we could write a TCK test for therefore I am leaving this issue open until we have a TCK test.
I was trying to implement better logging for our Faces application and ran into a problem. When the problematic expression goes through
ExpressionFactory#coerceToType
, the resulting exception is not wrapped in anELException
and thus some information is lost along the way.Here is our example stack trace:
If the exception would be wrapped in an
ELException
, MyFaces would wrap it in an exception that contains information about the location and expression that resulted in the exception. As it is, the exception is being passed through.I checked different implementations, and both seem to behave the same: Tomcat Expressly
The question is: should the exception actually be wrapped in an
ELException
? The spec says: An ELException is thrown if an error results from applying the conversion rules.Thank you very much in advance!