Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support custom parameter types with Optional<T> #4799

Conversation

joschi
Copy link
Contributor

@joschi joschi commented May 23, 2021

The OptionalProvider (ParamConverterProvider) introduced in #4690 didn't support custom parameter types wrapped in an Optional<T> but only the types implemented in org.glassfish.jersey.internal.inject.ParamConverters.

This PR adds support for arbitrary parameter types by looking up the parameter converter providers via InjectionManager.

Refs #3087
Refs #4651
Refs dropwizard/dropwizard#3969
Closes #4798

Copy link
Member

@jbescos jbescos left a comment

Choose a reason for hiding this comment

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

LGTM, thank you

@jansupol jansupol merged commit 532dd1e into eclipse-ee4j:master Jul 8, 2021
@joschi joschi deleted the issue-4798-optional-custom-paramconverters branch July 8, 2021 15:55
@jansupol jansupol added this to the 2.35 milestone Jul 26, 2021
This was referenced Sep 6, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ParamConverter for Optional<T> doesn't support custom types
3 participants