diff --git a/hibernate-core/src/main/java/org/hibernate/bytecode/enhance/internal/bytebuddy/EnhancerImpl.java b/hibernate-core/src/main/java/org/hibernate/bytecode/enhance/internal/bytebuddy/EnhancerImpl.java index e71471a537..56dbb9d54b 100644 --- a/hibernate-core/src/main/java/org/hibernate/bytecode/enhance/internal/bytebuddy/EnhancerImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/bytecode/enhance/internal/bytebuddy/EnhancerImpl.java @@ -536,7 +536,7 @@ public class EnhancerImpl implements Enhancer { } annotationDescriptions.addAll( fieldDescription.getDeclaredAnnotations() ); - return fieldDescription.getDeclaredAnnotations(); + return new AnnotationList.Explicit( annotationDescriptions ); } } }