Pluto
  1. Pluto
  2. PLUTO-451

JSP21ExpressionEvaluatorProxy is causing an exception in Tomcat 6.0 if compiled using JDK 5.0

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1.5, 2.0.0
    • Fix Version/s: 1.1.5, 2.0.0
    • Labels:
      None
    • Environment:
      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.

      1. taglib-problem.diff
        0.7 kB
        Benjamin Gould

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Benjamin Gould
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development