eclipse-ee4j / eclipse-ee4j/jersey
MessageBodyHandler broke from 3.1.9 to 3.1.10
- Dominant language
- Java
- Stars
- 730
- Forks
- 382
- PR merge metrics
- No merged PRs in 30d
Description
I have a MessageBodyHandler that implements MessageBodyWriter, MessageBodyReader for custom serialization/deserialization that is activated in a spring boot application like this:
@ApplicationPath("/foo/bar")
public class JerseyResourceConfig extends ResourceConfig {
public JerseyResourceConfig(@Context ServletContext context) {
register(MessageBodyHandler.class);
WebApplicationContext appCtx = WebApplicationContextUtils.getWebApplicationContext(context);
registerInstances(new HashSet<>(appCtx.getBeansWithAnnotation(Path.class).values()));
}
}
This stopped working when upgrading to 3.4.2 of spring boot, which ups the version of jersey to 3.1.10
Overriding the jersey version to 3.1.9 fixes the problem.
Contributor guide
Assessment
This issue has not been assessed yet.