From 8d5f61707af9782218fa9379d20b346a2dd89389 Mon Sep 17 00:00:00 2001 From: Foivos Zakkak Date: Thu, 1 Aug 2024 12:16:58 +0300 Subject: [PATCH] Fix constructors and queryConstructors check in ReflectiveClassBI Fix constructors and queryConstructors check in ReflectiveClassBuildItem Follow up to https://github.com/quarkusio/quarkus/pull/42035 --- .../builditem/nativeimage/ReflectiveClassBuildItem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/deployment/src/main/java/io/quarkus/deployment/builditem/nativeimage/ReflectiveClassBuildItem.java b/core/deployment/src/main/java/io/quarkus/deployment/builditem/nativeimage/ReflectiveClassBuildItem.java index 8b1e3fe3cc13a9..e28be3c002a9a7 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/builditem/nativeimage/ReflectiveClassBuildItem.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/builditem/nativeimage/ReflectiveClassBuildItem.java @@ -142,7 +142,7 @@ public static ReflectiveClassBuildItem serializationClass(String... classNames) this.fields = fields; this.classes = classes; this.constructors = constructors; - if (methods && queryMethods) { + if (constructors && queryConstructors) { Log.warnf( "Both constructors and queryConstructors are set to true for classes: %s. queryConstructors is redundant and will be ignored", String.join(", ", className));