Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1340

Proxy creation fails on JDK1.9 (jigsaw)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 3.1.2.Final, 3.5.1.Final
    • 3.0.16.Final
    • None
    • None

    Description

      As per this thread:
      http://mail.openjdk.java.net/pipermail/jigsaw-dev/2016-April/007239.html

      Currently RestEasy creates proxy classes and attempts to create their instances – this will fail in jigsaw.

      RestEasy creates this proxy cache in InjectorFactoryImpl.createContextProxy, but its only reason to exist is (presumably) to keep a cache of proxy classes for the same set of
      interfaces (it later calls ContextParameterInjector with a cached proxy class). This doesn't look correct to me as Proxy.newProxyInstance will reuse proxy classes internally anyway. This entire caching can be deleted and Proxy.newProxyInstance can be called in ContextParameterInjector.

      Attachments

        Activity

          People

            rhn-support-asoldano Alessio Soldano
            dawid.weiss Dawid Weiss (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: