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 Dec 19, 2023
1 parent d90d6e6 commit b386b25
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 b386b25

Please sign in to comment.