diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/main/java/io/quarkus/resteasy/reactive/jackson/deployment/processor/ResteasyReactiveJacksonProcessor.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/main/java/io/quarkus/resteasy/reactive/jackson/deployment/processor/ResteasyReactiveJacksonProcessor.java index 5294839c8816a..564b1ed477e7a 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/main/java/io/quarkus/resteasy/reactive/jackson/deployment/processor/ResteasyReactiveJacksonProcessor.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jackson/deployment/src/main/java/io/quarkus/resteasy/reactive/jackson/deployment/processor/ResteasyReactiveJacksonProcessor.java @@ -13,6 +13,7 @@ import jakarta.ws.rs.Priorities; import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.core.Cookie; import jakarta.ws.rs.core.MediaType; import org.jboss.jandex.AnnotationInstance; @@ -205,6 +206,11 @@ private String getJacksonMessageBodyReader(boolean needsFullFeatureSet) { : ServerJacksonMessageBodyReader.class.getName(); } + @BuildStep + void reflection(BuildProducer producer) { + producer.produce(ReflectiveClassBuildItem.builder(Cookie.class).methods().build()); + } + @Record(ExecutionTime.STATIC_INIT) @BuildStep void handleJsonAnnotations(Optional resourceScanningResultBuildItem, diff --git a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/main/java/io/quarkus/resteasy/reactive/jsonb/deployment/ResteasyReactiveJsonbProcessor.java b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/main/java/io/quarkus/resteasy/reactive/jsonb/deployment/ResteasyReactiveJsonbProcessor.java index fcaed58b07e6c..b17c7163f3da4 100644 --- a/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/main/java/io/quarkus/resteasy/reactive/jsonb/deployment/ResteasyReactiveJsonbProcessor.java +++ b/extensions/resteasy-reactive/quarkus-resteasy-reactive-jsonb/deployment/src/main/java/io/quarkus/resteasy/reactive/jsonb/deployment/ResteasyReactiveJsonbProcessor.java @@ -1,11 +1,13 @@ package io.quarkus.resteasy.reactive.jsonb.deployment; import jakarta.ws.rs.RuntimeType; +import jakarta.ws.rs.core.Cookie; import io.quarkus.deployment.Feature; import io.quarkus.deployment.annotations.BuildProducer; import io.quarkus.deployment.annotations.BuildStep; import io.quarkus.deployment.builditem.FeatureBuildItem; +import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem; import io.quarkus.resteasy.reactive.common.deployment.ServerDefaultProducesHandlerBuildItem; import io.quarkus.resteasy.reactive.jsonb.common.deployment.ResteasyReactiveJsonbCommonProcessor; import io.quarkus.resteasy.reactive.spi.MessageBodyReaderBuildItem; @@ -29,4 +31,9 @@ void additionalProviders(BuildProducer additionalRea ResteasyReactiveJsonbCommonProcessor.additionalProviders(additionalReaders, additionalWriters, RuntimeType.SERVER); } + + @BuildStep + void reflection(BuildProducer producer) { + producer.produce(ReflectiveClassBuildItem.builder(Cookie.class).methods().build()); + } }