From f7bcd1d9cf3f4f02be439045ae43380e6307bfc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoann=20Rodi=C3=A8re?= Date: Fri, 17 Sep 2021 16:47:49 +0200 Subject: [PATCH] HHH-14828 Fix incorrect logging in FieldAccessEnhancer --- .../enhance/internal/bytebuddy/FieldAccessEnhancer.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/bytecode/enhance/internal/bytebuddy/FieldAccessEnhancer.java b/hibernate-core/src/main/java/org/hibernate/bytecode/enhance/internal/bytebuddy/FieldAccessEnhancer.java index d990f913ad..14e7f02e69 100644 --- a/hibernate-core/src/main/java/org/hibernate/bytecode/enhance/internal/bytebuddy/FieldAccessEnhancer.java +++ b/hibernate-core/src/main/java/org/hibernate/bytecode/enhance/internal/bytebuddy/FieldAccessEnhancer.java @@ -77,11 +77,11 @@ final class FieldAccessEnhancer implements AsmVisitorWrapper.ForDeclaredMethods. && !field.getName().equals( "this$0" ) ) { log.debugf( - "Extended enhancement: Transforming access to field [%s.%s] from method [%s#%s]", - field.getType().asErasure(), + "Extended enhancement: Transforming access to field [%s#%s] from method [%s#%s()]", + declaredOwnerType.getName(), field.getName(), - field.getName(), - name + instrumentedType.getName(), + instrumentedMethod.getName() ); switch ( opcode ) {