From 5f3209cf442dbbb723ab4026405e933508e5f080 Mon Sep 17 00:00:00 2001 From: barreiro Date: Wed, 20 Jul 2016 18:35:55 +0100 Subject: [PATCH] HHH-10973 - Fix 'class is frozen' when enhancing bidirectional relationships (cherry picked from commit a9318ce656d8fae09f80fe49bfa576be1197fef3) --- .../bytecode/enhance/internal/PersistentAttributesHelper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/bytecode/enhance/internal/PersistentAttributesHelper.java b/hibernate-core/src/main/java/org/hibernate/bytecode/enhance/internal/PersistentAttributesHelper.java index f8a775aa5d..5fa7494552 100644 --- a/hibernate-core/src/main/java/org/hibernate/bytecode/enhance/internal/PersistentAttributesHelper.java +++ b/hibernate-core/src/main/java/org/hibernate/bytecode/enhance/internal/PersistentAttributesHelper.java @@ -310,7 +310,7 @@ public class PersistentAttributesHelper { private static String inferFieldTypeName(CtField field) { try { - if ( field.getFieldInfo().getAttribute( SignatureAttribute.tag ) == null ){ + if ( field.getFieldInfo2().getAttribute( SignatureAttribute.tag ) == null ) { return field.getType().getName(); } return inferGenericTypeName( @@ -328,7 +328,7 @@ public class PersistentAttributesHelper { private static String inferMethodTypeName(CtMethod method) { try { - if ( method.getMethodInfo().getAttribute( SignatureAttribute.tag ) == null ){ + if ( method.getMethodInfo2().getAttribute( SignatureAttribute.tag ) == null ) { return method.getReturnType().getName(); } return inferGenericTypeName(