Groovy
  1. Groovy
  2. GROOVY-2951

Cannot override instance methodMissing() in ExpandoMetaClass

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor 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.

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

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development