diff --git a/hibernate-envers/src/main/java/org/hibernate/envers/event/spi/EnversListenerDuplicationStrategy.java b/hibernate-envers/src/main/java/org/hibernate/envers/event/spi/EnversListenerDuplicationStrategy.java index a4a3c4b55d..276bd92c35 100644 --- a/hibernate-envers/src/main/java/org/hibernate/envers/event/spi/EnversListenerDuplicationStrategy.java +++ b/hibernate-envers/src/main/java/org/hibernate/envers/event/spi/EnversListenerDuplicationStrategy.java @@ -38,7 +38,7 @@ public class EnversListenerDuplicationStrategy implements DuplicationStrategy { @Override public boolean areMatch(Object listener, Object original) { - return listener.getClass().equals( original ) && EnversListener.class.isInstance( listener ); + return listener.getClass().equals( original.getClass() ) && EnversListener.class.isInstance( listener ); } @Override