Skip to content

Commit

Permalink
Qute: skip generation of resources if a validation error occurs
Browse files Browse the repository at this point in the history
- fixes quarkusio#33966

(cherry picked from commit 1cbfb46)
  • Loading branch information
mkouba authored and gsmet committed Jun 14, 2023
1 parent dbf7848 commit c961f4d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1711,12 +1711,18 @@ void generateValueResolvers(QuteConfig config, BuildProducer<GeneratedClassBuild
List<PanacheEntityClassesBuildItem> panacheEntityClasses,
List<TemplateDataBuildItem> templateData,
List<TemplateGlobalBuildItem> templateGlobals,
List<IncorrectExpressionBuildItem> incorrectExpressions,
LiveReloadBuildItem liveReloadBuildItem,
CompletedApplicationClassPredicateBuildItem applicationClassPredicate,
BuildProducer<GeneratedValueResolverBuildItem> generatedResolvers,
BuildProducer<ReflectiveClassBuildItem> reflectiveClass,
BuildProducer<GeneratedTemplateInitializerBuildItem> generatedInitializers) {

if (!incorrectExpressions.isEmpty()) {
// Skip generation if a validation error occurs
return;
}

IndexView index = beanArchiveIndex.getIndex();
ClassOutput classOutput = new GeneratedClassGizmoAdaptor(generatedClasses, new Function<String, String>() {
@Override
Expand Down

0 comments on commit c961f4d

Please sign in to comment.