Skip to content

[RESTEASY-3693] Allow using @Inject on resources, providers and applications without requiring a public no-arg constructor to better align with the CDI specification.#4803

Merged
jamezp merged 2 commits into
resteasy:mainfrom
jamezp:RESTEASY-3693
Mar 17, 2026

Conversation

@jamezp

@jamezp jamezp commented Mar 13, 2026

Copy link
Copy Markdown
Member

…ervlet dependencies.

Signed-off-by: James R. Perkins <jperkins@ibm.com>
@jamezp jamezp requested a review from a team as a code owner March 13, 2026 15:31

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note this was reverted back to using @Context as this test was really to test that @Context injection works on sub-classes. Using CDI wasn't right and it did cause a failure with these because of the ambiguous beans. We shouldn't have migrated this to use CDI.

…cations without requiring a public no-arg constructor to better align with the Jakarta Context and Dependency Injection (CDI) specification.

https://issues.redhat.com/browse/RESTEASY-3693`
Signed-off-by: James R. Perkins <jperkins@ibm.com>
@jamezp jamezp merged commit b7ef4af into resteasy:main Mar 17, 2026
17 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant