Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-2398

invokeMethod called twice on GroovyInterceptable when non-existent method called from an instance method

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.5
    • 1.5.1
    • None
    • None

    Description

      invokeMethod is called twice on a GroovyInterceptable if a non-existent method is called from within an instance method.
      It is called only once if non-existent method is called from outside the instance method. Please see test attached.

      Invoker's invokePogoMethod attempts to calls invokeMethod the second time only
      if the object is not interceptable (and hence the passing of first test I think).
      Similarly, the ScriptByteCodeAdapter's invokeMethodOnCurrentN should do the same,
      but it's not doing that (and hence the failing of the second test I think).

      Attachments

        1. InvokeMethodTest.groovy
          0.7 kB
          Venkat Srinivasan

        Activity

          People

            blackdrag Jochen Theodorou
            venkats Venkat Srinivasan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: