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

adding methods to metaclass of interface not working

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.7-beta-2
    • 1.6.6, 1.7-rc-1
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: