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

Fix Jakarta Cookie serialization in native #35592

Merged
merged 1 commit into from
Aug 28, 2023
Merged

Conversation

geoand
Copy link
Contributor

@geoand geoand commented Aug 28, 2023

Fixes: #35582

@@ -205,6 +206,11 @@ private String getJacksonMessageBodyReader(boolean needsFullFeatureSet) {
: ServerJacksonMessageBodyReader.class.getName();
}

@BuildStep
void reflection(BuildProducer<ReflectiveClassBuildItem> producer) {
producer.produce(ReflectiveClassBuildItem.builder(Cookie.class).methods().build());
Copy link
Member

Choose a reason for hiding this comment

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

Is it really expected that you have to serialize a Cookie?

Copy link
Contributor Author

@geoand geoand Aug 28, 2023

Choose a reason for hiding this comment

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

There is no reason not to really. We don't to it ourselves, but I don't see any reason why we should make it more difficult.

Copy link
Member

Choose a reason for hiding this comment

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

OK, I consider it an internal data structure but yeah why not.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, it's kinda grey :)

@quarkus-bot
Copy link

quarkus-bot bot commented Aug 28, 2023

✔️ The latest workflow run for the pull request has completed successfully.

It should be safe to merge provided you have a look at the other checks in the summary.

@geoand geoand merged commit 41fcd44 into quarkusio:main Aug 28, 2023
@geoand geoand deleted the #35582 branch August 28, 2023 12:49
@quarkus-bot quarkus-bot bot added this to the 3.4 - main milestone Aug 28, 2023
@gsmet gsmet modified the milestones: 3.4 - main, 3.3.2 Sep 4, 2023
@aloubyansky aloubyansky modified the milestones: 3.3.2, 3.2.8.Final Oct 31, 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.

Unable to serialize jakarta.ws.rs.core.Cookie after updating to 3.2.0 in native-image
4 participants