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

Do not use the Class.asSubclass() in the ResteasyDeploymentImpl when creating the application

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major Major
    • 7.0.0.Alpha2
    • None
    • Core
    • None

      In RESTEASY-3483 there was a change from casting a created application to jakarta.ws.rs.Application to loading the class as a subclass, e.g Class.asSubclass(Application.class). While technically this is okay, you end up with a better exception message when casting the object instead of the type. When casting the type, the exception message includes the class loader and the module each type live in which produces a better debugging experience.

              jperkins-rhn James Perkins
              jperkins-rhn James Perkins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: