From b30b51038167244fab4b78785ff085297ecbeed8 Mon Sep 17 00:00:00 2001 From: Gavin King Date: Wed, 22 May 2024 10:39:59 +0200 Subject: [PATCH] HHH-18149 fix for HibernateProcessor on ecj A typecast which works on javac doesn't work on ecj, but I agree that ecj is correct here. Signed-off-by: Gavin King --- .../processor/annotation/AnnotationMeta.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/AnnotationMeta.java b/tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/AnnotationMeta.java index 9b2153e6b9..6175b941d4 100644 --- a/tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/AnnotationMeta.java +++ b/tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/AnnotationMeta.java @@ -71,10 +71,10 @@ public abstract class AnnotationMeta implements Metamodel { final AnnotationValue value = getAnnotationValue( mirror, "value" ); if ( value != null ) { @SuppressWarnings("unchecked") - final List values = - (List) value.getValue(); - for ( AnnotationMirror annotationMirror : values ) { - handleNamedQuery( annotationMirror, checkHql ); + final List annotationValues = + (List) value.getValue(); + for ( AnnotationValue annotationValue : annotationValues ) { + handleNamedQuery( (AnnotationMirror) annotationValue.getValue(), checkHql ); } } } @@ -134,10 +134,10 @@ public abstract class AnnotationMeta implements Metamodel { final AnnotationValue value = getAnnotationValue( mirror, "value" ); if ( value != null ) { @SuppressWarnings("unchecked") - final List values = - (List) value.getValue(); - for ( AnnotationMirror annotationMirror : values ) { - addAuxiliaryMembersForMirror( annotationMirror, prefix ); + final List annotationValues = + (List) value.getValue(); + for ( AnnotationValue annotationValue : annotationValues ) { + addAuxiliaryMembersForMirror( (AnnotationMirror) annotationValue.getValue(), prefix ); } } }