tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <>
Subject Re: Using EL expressions in an ObjectFactory
Date Mon, 16 Sep 2013 14:02:21 GMT
On 16/09/2013 14:43, Xavier Dury wrote:
> I built tomcat from trunk (rev 1523639) and I'm having the same issue I had with glassfish
EL implementation when using overloaded methods:
> javax.el.ELException: Cannot convert ./ of type class java.lang.String to class
> 	at org.apache.el.lang.ELSupport.coerceToType(
> 	at org.apache.el.ExpressionFactoryImpl.coerceToType(
> 	at javax.el.ELContext.convertToType(
> 	at org.apache.el.lang.EvaluationContext.convertToType(
> 	at javax.el.ELUtil.invokeConstructor(
> 	at javax.el.StaticFieldELResolver.invoke(
> 	at javax.el.CompositeELResolver.invoke(
> 	at org.apache.el.parser.AstFunction.getValue(
> 	at org.apache.el.ValueExpressionImpl.getValue(
> 	at javax.el.ELProcessor.getValue(
> 	at javax.el.ELProcessor.eval(
> 	at org.apache.naming.factory.ExpressionFactoryTest.elImplementationShouldWork(
> So I guess it's normal behaviour, isn't it?
> I don't think EL spec does mandate implementations to make their best effort to find
a suitable method when invoking overloaded methods.

My intention with the Tomcat EL implementation is to replicate, as far
as possible, the matching process that the Java compiler uses.

If you open a bug and include a test case along the lines of this
one[1], I'll take a look.



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message