Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.1.5, 2.0.0
-
None
-
JDK 5.0, Tomcat 6.0
Description
JDK 5.0 changed the signature of Method.invoke() to using varargs for the second argument. The ExpressionEvaluatorProxy for JSP 2.1 passes null, which presumably gets coerced into new Object[]
{ null }by the compiler. This causes an exception because the runtime arguments for JspApplicationContexts.getExpressionFactory() do not match its signature. Passing an empty array Object[] {} to Method.invoke() resolves this ambiguity.