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

Arguments to InvalidReferenceEventHandler.invalidMethod are falsely ignored

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.7
    • None
    • Engine
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: