@@ -619,7 +619,7 @@ private void registerField(RegistrationCondition cnd, boolean queriedOnly, Field
619
619
}
620
620
621
621
if (declaringClass .isAnnotation ()) {
622
- processAnnotationField (cnd , reflectField );
622
+ processAnnotationField (reflectField );
623
623
}
624
624
}
625
625
@@ -660,12 +660,7 @@ private void processAnnotationMethod(boolean queriedOnly, Method method) {
660
660
Class <?> annotationClass = method .getDeclaringClass ();
661
661
Class <?> proxyClass = Proxy .getProxyClass (annotationClass .getClassLoader (), annotationClass );
662
662
try {
663
- /*
664
- * build-time condition as it is registered during analysis GR-62516, this should be
665
- * deleted
666
- */
667
- var condition = TypeReachabilityCondition .create (proxyClass , false );
668
- register (condition , queriedOnly , proxyClass .getDeclaredMethod (method .getName (), method .getParameterTypes ()));
663
+ register (RegistrationCondition .always (), queriedOnly , proxyClass .getDeclaredMethod (method .getName (), method .getParameterTypes ()));
669
664
} catch (NoSuchMethodException e ) {
670
665
/*
671
666
* The annotation member is not present in the proxy class so we don't add it.
@@ -674,11 +669,11 @@ private void processAnnotationMethod(boolean queriedOnly, Method method) {
674
669
}
675
670
676
671
@ SuppressWarnings ("deprecation" )
677
- private void processAnnotationField (RegistrationCondition cnd , Field field ) {
672
+ private void processAnnotationField (Field field ) {
678
673
Class <?> annotationClass = field .getDeclaringClass ();
679
674
Class <?> proxyClass = Proxy .getProxyClass (annotationClass .getClassLoader (), annotationClass );
680
675
try {
681
- register (cnd , false , proxyClass .getDeclaredField (field .getName ()));
676
+ register (RegistrationCondition . always () , false , proxyClass .getDeclaredField (field .getName ()));
682
677
} catch (NoSuchFieldException e ) {
683
678
/*
684
679
* The annotation member is not present in the proxy class so we don't add it.
@@ -1240,7 +1235,7 @@ public void registerHeapReflectionField(Field reflectField, ScanReason reason) {
1240
1235
if (!SubstitutionReflectivityFilter .shouldExclude (reflectField , metaAccess , universe )) {
1241
1236
registerTypesForField (analysisField , reflectField , false );
1242
1237
if (analysisField .getDeclaringClass ().isAnnotation ()) {
1243
- processAnnotationField (RegistrationCondition . always (), reflectField );
1238
+ processAnnotationField (reflectField );
1244
1239
}
1245
1240
}
1246
1241
}
0 commit comments