Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.7.7
-
None
-
Unknown
Description
If we consider the following exception mapper, all Throwables will be mapped instead of only the SomeClientExceptions :
@Provider public class SomeClientExceptionMapper extends AbstractBadRequestExceptionMapper<SomeClientException> {} abstract class AbstractBadRequestExceptionMapper<T extends Throwable> implements ExceptionMapper<T> { @Override public Response toResponse(T exception) { return Response.status(Status.BAD_REQUEST).entity(exception.getMessage()).build(); } }
Please find attached, a sample project with some ITs showing the problem.
Attachments
Attachments
Issue Links
- is related to
-
CXF-7473 ExceptionMapper class hierarchies: incompatible ExceptionMapper selected
- Closed