Skip to content

Commit

Permalink
quarkus-jaxb loads entity classes at build time even though no defaul…
Browse files Browse the repository at this point in the history
…t JAXBContext will be created within the application #32059
  • Loading branch information
ppalaga committed Mar 23, 2023
1 parent 286cf2c commit e86129c
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,14 +314,6 @@ FilteredJaxbClassesToBeBoundBuildItem filterBoundClasses(
return builder.build();
}

@BuildStep
@Record(ExecutionTime.STATIC_INIT)
void setupJaxbContextConfig(
FilteredJaxbClassesToBeBoundBuildItem filteredClassesToBeBound,
JaxbContextConfigRecorder jaxbContextConfig) {
jaxbContextConfig.addClassesToBeBound(filteredClassesToBeBound.getClasses());
}

@BuildStep
@Record(ExecutionTime.STATIC_INIT)
void validateDefaultJaxbContext(
Expand All @@ -335,6 +327,7 @@ void validateDefaultJaxbContext(
final Set<BeanInfo> beans = beanResolver
.resolveBeans(Type.create(DotName.createSimple(JAXBContext.class), org.jboss.jandex.Type.Kind.CLASS));
if (!beans.isEmpty()) {
jaxbContextConfig.addClassesToBeBound(filteredClassesToBeBound.getClasses());
final BeanInfo bean = beanResolver.resolveAmbiguity(beans);
if (bean.isDefaultBean()) {
/*
Expand Down

0 comments on commit e86129c

Please sign in to comment.