mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-16 16:15:06 +00:00
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>
This commit is contained in:
parent
8ceed5ab5a
commit
b30b510381
@ -71,10 +71,10 @@ private void handleNamedQueryRepeatableAnnotation(String annotationName, boolean
|
|||||||
final AnnotationValue value = getAnnotationValue( mirror, "value" );
|
final AnnotationValue value = getAnnotationValue( mirror, "value" );
|
||||||
if ( value != null ) {
|
if ( value != null ) {
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
final List<? extends AnnotationMirror> values =
|
final List<? extends AnnotationValue> annotationValues =
|
||||||
(List<? extends AnnotationMirror>) value.getValue();
|
(List<? extends AnnotationValue>) value.getValue();
|
||||||
for ( AnnotationMirror annotationMirror : values ) {
|
for ( AnnotationValue annotationValue : annotationValues ) {
|
||||||
handleNamedQuery( annotationMirror, checkHql );
|
handleNamedQuery( (AnnotationMirror) annotationValue.getValue(), checkHql );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -134,10 +134,10 @@ private void addAuxiliaryMembersForRepeatableAnnotation(String annotationName, S
|
|||||||
final AnnotationValue value = getAnnotationValue( mirror, "value" );
|
final AnnotationValue value = getAnnotationValue( mirror, "value" );
|
||||||
if ( value != null ) {
|
if ( value != null ) {
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
final List<? extends AnnotationMirror> values =
|
final List<? extends AnnotationValue> annotationValues =
|
||||||
(List<? extends AnnotationMirror>) value.getValue();
|
(List<? extends AnnotationValue>) value.getValue();
|
||||||
for ( AnnotationMirror annotationMirror : values ) {
|
for ( AnnotationValue annotationValue : annotationValues ) {
|
||||||
addAuxiliaryMembersForMirror( annotationMirror, prefix );
|
addAuxiliaryMembersForMirror( (AnnotationMirror) annotationValue.getValue(), prefix );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user