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

Order ParamConverterProviders and ExceptionMappers by @Priority

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 4.0.0.Beta1
    • Component/s: None
    • Labels:
      None

      Description

      Currently, when ResteasyProviderFactory registers a new ParamConverterProvider, it adds it to the end of a list, which means that a new ParamConverterProvider with a high priority, according to a @Priority annotation, could get tried after a lower priority ParamConverterProvider. The list should be ordered by decreasing priority.

      Also, when ResteasyProviderFactory registers a new implementation of ExceptionMapper<Exception>, it overwrites any implementation that is already registered. That should happen only if the new implementation has a higher priority, according to a @Priority annotation.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                ron_sigal Ron Sigal
                Reporter:
                ron_sigal Ron Sigal
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: