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. 2951Patch_v17x.txt
        4 kB
        Roshan Dawrani
      2. 2951PatchesAndTest.zip
        2 kB
        Roshan Dawrani
      3. MethodMissingTestCase.groovy
        0.4 kB
        Peter Ledbrook

        Activity

        Peter Ledbrook created issue -
        Roshan Dawrani made changes -
        Field Original Value New Value
        Attachment 2951PatchesAndTest.zip [ 37650 ]
        Roshan Dawrani made changes -
        Attachment 2951Patch_v17x.txt [ 37654 ]
        Jochen Theodorou made changes -
        Assignee Roshan Dawrani [ roshandawrani ]
        Jochen Theodorou made changes -
        Fix Version/s 1.7-beta-1 [ 14014 ]
        Priority Critical [ 2 ] Minor [ 4 ]
        Roshan Dawrani made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Paul King made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
        Mark Thomas made changes -
        Workflow jira [ 12731963 ] Default workflow, editable Closed status [ 12743709 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
        Mark Thomas made changes -
        Workflow jira [ 12969828 ] Default workflow, editable Closed status [ 12977609 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development