Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.7.7
-
Fix Version/s: 3.0.0-milestone2, 2.7.10
-
Component/s: JAX-RS
-
Labels:None
-
Estimated Complexity: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
Issue Links
- is related to
-
CXF-7473 ExceptionMapper class hierarchies: incompatible ExceptionMapper selected
-
- Closed
-