Skip to content

Commit

Permalink
HHH-16881 - Fix conditional when CDI extensions are enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mgarcia.devinuesa authored and beikov committed Jan 5, 2024
1 parent 3564717 commit 9c65a22
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private ManagedBean<? extends RevisionListener> resolveRevisionListenerBean(
Class<? extends RevisionListener> listenerClass,
ServiceRegistry serviceRegistry) {
if ( !listenerClass.equals( RevisionListener.class ) ) {
if ( Helper.allowExtensionsInCdi( serviceRegistry ) ) {
if ( !Helper.allowExtensionsInCdi( serviceRegistry ) ) {
return new ProvidedInstanceManagedBeanImpl<>(
FallbackBeanInstanceProducer.INSTANCE.produceBeanInstance( listenerClass )
);
Expand Down

0 comments on commit 9c65a22

Please sign in to comment.