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

adding methods to metaclass of interface not working

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.7-beta-2
    • Fix Version/s: 1.6.6, 1.7-rc-1
    • Component/s: None
    • Labels:
      None
    • Environment:
      1.7-beta-2

      Description

      this worked with 1.6 but not with 1.7-beta-2 any longer:

      ExpandoMetaClass.enableGlobally()
      List.metaClass.methodMissing = { String name, args ->
          true
      }
      def list = []
      assert list.noSuchMethod()
      

        Attachments

          Activity

            People

            • Assignee:
              roshandawrani Roshan Dawrani
              Reporter:
              codevise Dierk König
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: