eclipse-ee4j / eclipse-ee4j/jersey
@Context injection for sub-resources no longer working in 2.22.2
Open
Priority: Major
Type: Bug
- Dominant language
- Java
- Stars
- 730
- Forks
- 382
- PR merge metrics
- No merged PRs in 30d
Description
You can see a simple demonstration of the issue here: [https://github.com/ruhkopf/spring-boot-jersey](https://github.com/ruhkopf/spring-boot-jersey)
When using sub-resources, the injection of @Context variables no longer works. Instead, the instance variable is null.
I'm not sure if this has anything to do with the fact that I'm using Spring Boot. However, the same exact code works in 2.22.1 (see the branch in the repository).
This seems like a bug to me. Maybe it was caused by changes related to #3262/#3260?
#### Affected Versions
[2.22.2]
Contributor guide
Assessment
This issue has not been assessed yet.