From 5c2c46ff4199c8aa17572728d0e82a23c4dd9251 Mon Sep 17 00:00:00 2001 From: Georgios Andrianakis Date: Mon, 4 Mar 2024 10:59:00 +0200 Subject: [PATCH] Ensure @ApplicationScoped doesn't break default constructor generation Fixes: #39137 --- .../common/deployment/ResteasyServerCommonProcessor.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/extensions/resteasy-classic/resteasy-server-common/deployment/src/main/java/io/quarkus/resteasy/server/common/deployment/ResteasyServerCommonProcessor.java b/extensions/resteasy-classic/resteasy-server-common/deployment/src/main/java/io/quarkus/resteasy/server/common/deployment/ResteasyServerCommonProcessor.java index 8e8ef570a1807..7e72487ad12ef 100644 --- a/extensions/resteasy-classic/resteasy-server-common/deployment/src/main/java/io/quarkus/resteasy/server/common/deployment/ResteasyServerCommonProcessor.java +++ b/extensions/resteasy-classic/resteasy-server-common/deployment/src/main/java/io/quarkus/resteasy/server/common/deployment/ResteasyServerCommonProcessor.java @@ -544,6 +544,7 @@ List registerCompatibleAnnotationPrefixes prefixes.add(new AllowedJaxRsAnnotationPrefixBuildItem("jakarta.annotation.security")); prefixes.add(new AllowedJaxRsAnnotationPrefixBuildItem("java.lang")); prefixes.add(new AllowedJaxRsAnnotationPrefixBuildItem("jakarta.inject")); + prefixes.add(new AllowedJaxRsAnnotationPrefixBuildItem("jakarta.enterprise.context")); return prefixes; } @@ -736,8 +737,11 @@ private static void generateDefaultConstructors(BuildProducer