Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Properly handle char and Character parameter types in JAX-RS methods #24549

Merged
merged 1 commit into from
Mar 29, 2022

Conversation

geoand
Copy link
Contributor

@geoand geoand commented Mar 25, 2022

Fixes: #24541

@@ -75,8 +75,10 @@ public String get(@PathParam("id") String id) {
public String params(@PathParam("p") String p,
@QueryParam("q") String q,
@HeaderParam("h") int h,
@HeaderParam("h2") char h2,
@HeaderParam("h3") Character h3,
@FormParam("f") String f) {
Copy link
Member

Choose a reason for hiding this comment

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

I know the other primitive types work, because I have tests for them, but I'm surprised that we don't here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

?

Copy link
Member

Choose a reason for hiding this comment

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

I mean boolean, byte, short, long, float, double and all that junk.

Copy link
Contributor Author

@geoand geoand Mar 29, 2022

Choose a reason for hiding this comment

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

We could add them, but there is not much point I would say due the existence of valueOf (which of course does not exist for char)

@FroMage FroMage merged commit 850908a into quarkusio:main Mar 29, 2022
@quarkus-bot quarkus-bot bot added this to the 2.9 - main milestone Mar 29, 2022
@geoand geoand deleted the #24541 branch March 29, 2022 13:31
@FroMage
Copy link
Member

FroMage commented Mar 29, 2022

@gsmet This would be great to backport, it's preventing me from releasing the Renarde extension because I test for this, and it doesn't compile natively without this.

@geoand
Copy link
Contributor Author

geoand commented Mar 29, 2022

The label is present, so it will be backported 😉

@geoand
Copy link
Contributor Author

geoand commented Mar 29, 2022

Curious though, what Renarde feature needs a char?

@gsmet gsmet modified the milestones: 2.9 - main, 2.8.0.Final Mar 29, 2022
@FroMage
Copy link
Member

FroMage commented Mar 30, 2022

Curious though, what Renarde feature needs a char?

It doesn't, but it's an existing test, so CI can't pass without this, or I need to disable the test.

@Sgitario Sgitario mentioned this pull request Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RESTEasy Reactive: issues with char parameter
3 participants