Skip to content

Commit b30b510

Browse files
committed
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 <gavin@hibernate.org>
1 parent 8ceed5a commit b30b510

File tree

1 file changed

+8
-8
lines changed
  • tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation

1 file changed

+8
-8
lines changed

tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/AnnotationMeta.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ private void handleNamedQueryRepeatableAnnotation(String annotationName, boolean
7171
final AnnotationValue value = getAnnotationValue( mirror, "value" );
7272
if ( value != null ) {
7373
@SuppressWarnings("unchecked")
74-
final List<? extends AnnotationMirror> values =
75-
(List<? extends AnnotationMirror>) value.getValue();
76-
for ( AnnotationMirror annotationMirror : values ) {
77-
handleNamedQuery( annotationMirror, checkHql );
74+
final List<? extends AnnotationValue> annotationValues =
75+
(List<? extends AnnotationValue>) value.getValue();
76+
for ( AnnotationValue annotationValue : annotationValues ) {
77+
handleNamedQuery( (AnnotationMirror) annotationValue.getValue(), checkHql );
7878
}
7979
}
8080
}
@@ -134,10 +134,10 @@ private void addAuxiliaryMembersForRepeatableAnnotation(String annotationName, S
134134
final AnnotationValue value = getAnnotationValue( mirror, "value" );
135135
if ( value != null ) {
136136
@SuppressWarnings("unchecked")
137-
final List<? extends AnnotationMirror> values =
138-
(List<? extends AnnotationMirror>) value.getValue();
139-
for ( AnnotationMirror annotationMirror : values ) {
140-
addAuxiliaryMembersForMirror( annotationMirror, prefix );
137+
final List<? extends AnnotationValue> annotationValues =
138+
(List<? extends AnnotationValue>) value.getValue();
139+
for ( AnnotationValue annotationValue : annotationValues ) {
140+
addAuxiliaryMembersForMirror( (AnnotationMirror) annotationValue.getValue(), prefix );
141141
}
142142
}
143143
}

0 commit comments

Comments
 (0)