Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: groovy-runtime
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: