Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-5990 Mixin Issues
  3. GROOVY-3280

@Mixin should create method stubs

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • groovy-runtime
    • None

    Description

      We should make it possible to implement any Java interface with method missing:

      class Foo {
          def methodMissing(String name, args) { null }
      }
      
      def f = new Foo()
      def ctx = f as SomeInterface
      

      The proxy would simply delegate from the interface through methodMissing

      Attachments

        Activity

          People

            Unassigned Unassigned
            graemerocher Graeme Rocher
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: