From 9c65a2299c8680ff7c3144c78dbfd37ac2359308 Mon Sep 17 00:00:00 2001 From: "mgarcia.devinuesa" Date: Mon, 16 Oct 2023 13:23:30 +0200 Subject: [PATCH] HHH-16881 - Fix conditional when CDI extensions are enabled --- .../internal/revisioninfo/DefaultRevisionInfoGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-envers/src/main/java/org/hibernate/envers/internal/revisioninfo/DefaultRevisionInfoGenerator.java b/hibernate-envers/src/main/java/org/hibernate/envers/internal/revisioninfo/DefaultRevisionInfoGenerator.java index 44b822336f..8485084c7d 100644 --- a/hibernate-envers/src/main/java/org/hibernate/envers/internal/revisioninfo/DefaultRevisionInfoGenerator.java +++ b/hibernate-envers/src/main/java/org/hibernate/envers/internal/revisioninfo/DefaultRevisionInfoGenerator.java @@ -110,7 +110,7 @@ public class DefaultRevisionInfoGenerator implements RevisionInfoGenerator { Class listenerClass, ServiceRegistry serviceRegistry) { if ( !listenerClass.equals( RevisionListener.class ) ) { - if ( Helper.allowExtensionsInCdi( serviceRegistry ) ) { + if ( !Helper.allowExtensionsInCdi( serviceRegistry ) ) { return new ProvidedInstanceManagedBeanImpl<>( FallbackBeanInstanceProducer.INSTANCE.produceBeanInstance( listenerClass ) );