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

JDK Dynamic Proxies Broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.1-beta-1, 1.1-beta-2
    • 1.1-rc-2
    • None
    • None
    • Patch

    Description

      Groovy beans wrapped in JDK style proxies throw an "IllegalArgumentException: object is not an instance of declaring class" when a method is called on them from a Groovy object.

      Thread on subject from the dev list: http://www.nabble.com/JDK-Style-Proxy-Issue-tf4137792.html

      Diagnosis from Jochen Theodorou: http://www.nabble.com/Re%3A-JDK-Style-Proxy-Issue-p11815320.html

      Attachments

        1. JdkDynamicProxyTest.diff
          5 kB
          Mark Menard
        2. GroovyJdkDynamicProxyPatch.diff
          12 kB
          Mark Menard

        Activity

          People

            blackdrag Jochen Theodorou
            mark@mjm.net Mark Menard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: