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

RESTEasy Links provider should use correct class loader

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.5.8.Final
    • 4.5.2.Final, 4.5.3.Final
    • None
    • None

    Description

      Links provider uses `Class.forName` method (https://github.com/resteasy/Resteasy/blob/4.5.2.Final/resteasy-links/src/main/java/org/jboss/resteasy/links/impl/AbstractLinksProvider.java#L84) to get a response class to be used for link resolution. This works in a usual scenario, but it fails with Quarkus dev mode. It must be because of a different class loaders used in this mode.

      Using a specific entity class loader fixes the issue.

      Attachments

        Issue Links

          Activity

            People

              gtrikler@redhat.com Gytis Trikleris (Inactive)
              gtrikler@redhat.com Gytis Trikleris (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: