From b2eaf4e88db5db55b5bc1468c6e8b4c1764339ca Mon Sep 17 00:00:00 2001 From: Sanne Grinovero Date: Mon, 8 Jul 2019 18:13:28 +0100 Subject: [PATCH] HHH-13496 Do not use toString on arrays when formatting error messages --- .../hibernate/persister/entity/AbstractEntityPersister.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java b/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java index 787e45e8ff..8f41e64aa8 100644 --- a/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java +++ b/hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java @@ -5361,7 +5361,7 @@ public abstract class AbstractEntityPersister if ( LOG.isTraceEnabled() ) { LOG.tracef( "Resolving natural-id [%s] to id : %s ", - naturalIdValues, + Arrays.asList( naturalIdValues ), MessageHelper.infoString( this ) ); } @@ -5409,7 +5409,7 @@ public abstract class AbstractEntityPersister e, String.format( "could not resolve natural-id [%s] to id : %s", - naturalIdValues, + Arrays.asList( naturalIdValues ), MessageHelper.infoString( this ) ), sqlEntityIdByNaturalIdString