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

Cannot override instance methodMissing() in ExpandoMetaClass

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.5.6, 1.6-beta-1
    • Fix Version/s: 1.7-beta-1
    • Component/s: None
    • Labels:
      None

      Description

      It is not possible to provide an instance-level methodMissing() implementation for a class via ExpandoMetaClass. Note that it is possible to do this for the static version of the method. See the attached test case.

        Attachments

        1. 2951Patch_v17x.txt
          4 kB
          Roshan Dawrani
        2. 2951PatchesAndTest.zip
          2 kB
          Roshan Dawrani
        3. MethodMissingTestCase.groovy
          0.4 kB
          Peter Ledbrook

          Activity

            People

            • Assignee:
              roshandawrani Roshan Dawrani
              Reporter:
              pledbrook Peter Ledbrook
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: