eclipse-ee4j / eclipse-ee4j/jersey

Custom application with empty `getClasses()/getSingletons()` registering also NON root resources

Open
#3,756 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
730
Forks
382
PR merge metrics
No merged PRs in 30d

Description

It seems that Jersey (at least 2.26) incorrectly registers also non root resources (available via `getClasses()`) even if stated otherwise in [docs](https://jersey.github.io/documentation/latest/deployment.html) section `4.7.2.3.2. JAX-RS application with a custom Application subclass`

#1867 and #1906 addressed different issues in this area

An example of this behaviour can be found [here](https://github.com/swagger-api/swagger-samples/blob/2.0/java/java-jersey2-configfile/src/main/java/io/swagger/sample/MyApplication.java)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.