el-spec
  1. el-spec
  2. EL_SPEC-17

MethodExpression.getMethodInfo() always returns null

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:

      javax.el-3.0.0.jar standalone, Oracle Java 1.7.0_45 on Linux 64-bit

      Description

      When invoking getMethodInfo() on a method expression, I always get null.

      This seems to be caused by AstValue.getMethodInfo():

          public MethodInfo getMethodInfo(EvaluationContext ctx, Class[] paramTypes)
                  throws ELException {
              Target t = getTarget(ctx);
              if (t.isMethodCall()) {
                  return null;
              }
              Object property = t.suffixNode.getValue(ctx);
              Method m = ReflectionUtil.getMethod(t.base, property, paramTypes);
              return new MethodInfo(m.getName(), m.getReturnType(), m
                      .getParameterTypes());
          }
      

      Shouldn't this be

      if ( ! t.isMethodCall()) {
          return null;
      }
      

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Harald Wellmann
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: