@@ -609,7 +609,7 @@ private void registerField(RegistrationCondition cnd, boolean queriedOnly, Field
609
609
}
610
610
611
611
if (declaringClass .isAnnotation ()) {
612
- processAnnotationField (cnd , reflectField );
612
+ processAnnotationField (reflectField );
613
613
}
614
614
}
615
615
@@ -650,12 +650,7 @@ private void processAnnotationMethod(boolean queriedOnly, Method method) {
650
650
Class <?> annotationClass = method .getDeclaringClass ();
651
651
Class <?> proxyClass = Proxy .getProxyClass (annotationClass .getClassLoader (), annotationClass );
652
652
try {
653
- /*
654
- * build-time condition as it is registered during analysis GR-62516, this should be
655
- * deleted
656
- */
657
- var condition = TypeReachabilityCondition .create (proxyClass , false );
658
- register (condition , queriedOnly , proxyClass .getDeclaredMethod (method .getName (), method .getParameterTypes ()));
653
+ register (RegistrationCondition .always (), queriedOnly , proxyClass .getDeclaredMethod (method .getName (), method .getParameterTypes ()));
659
654
} catch (NoSuchMethodException e ) {
660
655
/*
661
656
* The annotation member is not present in the proxy class so we don't add it.
@@ -664,11 +659,11 @@ private void processAnnotationMethod(boolean queriedOnly, Method method) {
664
659
}
665
660
666
661
@ SuppressWarnings ("deprecation" )
667
- private void processAnnotationField (RegistrationCondition cnd , Field field ) {
662
+ private void processAnnotationField (Field field ) {
668
663
Class <?> annotationClass = field .getDeclaringClass ();
669
664
Class <?> proxyClass = Proxy .getProxyClass (annotationClass .getClassLoader (), annotationClass );
670
665
try {
671
- register (cnd , false , proxyClass .getDeclaredField (field .getName ()));
666
+ register (RegistrationCondition . always () , false , proxyClass .getDeclaredField (field .getName ()));
672
667
} catch (NoSuchFieldException e ) {
673
668
/*
674
669
* The annotation member is not present in the proxy class so we don't add it.
@@ -1229,7 +1224,7 @@ public void registerHeapReflectionField(Field reflectField, ScanReason reason) {
1229
1224
if (!SubstitutionReflectivityFilter .shouldExclude (reflectField , metaAccess , universe )) {
1230
1225
registerTypesForField (analysisField , reflectField , false );
1231
1226
if (analysisField .getDeclaringClass ().isAnnotation ()) {
1232
- processAnnotationField (RegistrationCondition . always (), reflectField );
1227
+ processAnnotationField (reflectField );
1233
1228
}
1234
1229
}
1235
1230
}
0 commit comments