Uploaded image for project: 'Velocity'
  1. Velocity
  2. VELOCITY-837

Arguments to InvalidReferenceEventHandler.invalidMethod are falsely ignored

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.7
    • Fix Version/s: None
    • Component/s: Engine
    • Labels:
      None

      Description

      The arguments to a method that is handled by InvalidReferenceEventHandler.invalidMethod are ignored.
      Example: $someObject.myOwnMethod("with", "some", "arguments")
      The arguments are ignored, as per ASTReference.java#306-308 [current HEAD revision]:
      String methodName = ((ASTMethod) jjtGetChild(failedChild)).getMethodName();
      result = EventHandlerUtil.invalidMethod(rsvc, context, name.toString(), previousResult, methodName, uberInfo);
      This method fails to include the arguments of the current ASTMethod.

        Attachments

        1. VELOCITY-837.patch
          2 kB
          Peter-Paul Kruijsen

          Activity

            People

            • Assignee:
              claude Claude Brisson
              Reporter:
              p.kruijsen Peter-Paul Kruijsen
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: