From 5f92f028c46c924641c62c3953fd0dd6127438b4 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Tue, 10 Jul 2018 13:15:28 +0200 Subject: [PATCH] HHH-12784 Fix a regression in Javassist support --- .../internal/javassist/AttributeTypeDescriptor.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/bytecode/enhance/internal/javassist/AttributeTypeDescriptor.java b/hibernate-core/src/main/java/org/hibernate/bytecode/enhance/internal/javassist/AttributeTypeDescriptor.java index ab912c6c94..4c4d7462bc 100644 --- a/hibernate-core/src/main/java/org/hibernate/bytecode/enhance/internal/javassist/AttributeTypeDescriptor.java +++ b/hibernate-core/src/main/java/org/hibernate/bytecode/enhance/internal/javassist/AttributeTypeDescriptor.java @@ -8,6 +8,8 @@ package org.hibernate.bytecode.enhance.internal.javassist; import java.util.Collection; import java.util.Locale; +import java.util.Objects; + import javax.persistence.EmbeddedId; import javax.persistence.Id; @@ -20,7 +22,7 @@ import org.hibernate.bytecode.enhance.spi.EnhancerConstants; /** * utility class to generate interceptor methods * @see org.hibernate.engine.spi.PersistentAttributeInterceptor - * + * * @author Luis Barreiro */ public abstract class AttributeTypeDescriptor { @@ -64,7 +66,8 @@ public abstract class AttributeTypeDescriptor { } builder.append( String.format( - " if ( !Objects.deepEquals( %s, $1 ) )", + " if ( !%s.deepEquals( %s, $1 ) )", + Objects.class.getName(), readFragment ) );