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

Cannot override instance methodMissing() in ExpandoMetaClass

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.5.6, 1.6-beta-1
    • 1.7-beta-1
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: