From c961f4db20b3783d475bb9884b9f722e1ba9afb3 Mon Sep 17 00:00:00 2001 From: Martin Kouba Date: Mon, 12 Jun 2023 10:12:31 +0200 Subject: [PATCH] Qute: skip generation of resources if a validation error occurs - fixes #33966 (cherry picked from commit 1cbfb462c4777bcf3fa349b4c7856c2bbb6dd9df) --- .../main/java/io/quarkus/qute/deployment/QuteProcessor.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/extensions/qute/deployment/src/main/java/io/quarkus/qute/deployment/QuteProcessor.java b/extensions/qute/deployment/src/main/java/io/quarkus/qute/deployment/QuteProcessor.java index e362d555376dd..11047be4925f0 100644 --- a/extensions/qute/deployment/src/main/java/io/quarkus/qute/deployment/QuteProcessor.java +++ b/extensions/qute/deployment/src/main/java/io/quarkus/qute/deployment/QuteProcessor.java @@ -1711,12 +1711,18 @@ void generateValueResolvers(QuteConfig config, BuildProducer panacheEntityClasses, List templateData, List templateGlobals, + List incorrectExpressions, LiveReloadBuildItem liveReloadBuildItem, CompletedApplicationClassPredicateBuildItem applicationClassPredicate, BuildProducer generatedResolvers, BuildProducer reflectiveClass, BuildProducer generatedInitializers) { + if (!incorrectExpressions.isEmpty()) { + // Skip generation if a validation error occurs + return; + } + IndexView index = beanArchiveIndex.getIndex(); ClassOutput classOutput = new GeneratedClassGizmoAdaptor(generatedClasses, new Function() { @Override