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

RESTEasy Links provider should use correct class loader

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.5.2.Final, 4.5.3.Final
    • Fix Version/s: 4.5.8.Final
    • Component/s: None
    • Labels:
      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

              Assignee:
              gytis Gytis Trikleris
              Reporter:
              gytis Gytis Trikleris
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: