From 3fcf0e0f0ced8bcdab7fac3e6e8798953d70edc5 Mon Sep 17 00:00:00 2001 From: Gavin King Date: Wed, 27 Mar 2024 11:01:48 +0100 Subject: [PATCH] HHH-17895 add comment Signed-off-by: Gavin King --- .../hibernate/processor/annotation/AnnotationMetaEntity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/AnnotationMetaEntity.java b/tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/AnnotationMetaEntity.java index 6bb57fbd93..5757ae2186 100644 --- a/tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/AnnotationMetaEntity.java +++ b/tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/AnnotationMetaEntity.java @@ -2483,6 +2483,9 @@ public class AnnotationMetaEntity extends AnnotationMeta { .collect(toList()); } + /** + * Workaround for a bug in Java 20/21. Should not be necessary! + */ private String typeAsString(TypeMirror type) { String result = type.toString(); for ( AnnotationMirror annotation : type.getAnnotationMirrors() ) {