@@ -651,7 +651,7 @@ private void registerField(AccessCondition cnd, boolean queriedOnly, Field refle
651
651
}
652
652
653
653
if (declaringClass .isAnnotation ()) {
654
- processAnnotationField (cnd , reflectField );
654
+ processAnnotationField (reflectField );
655
655
}
656
656
}
657
657
@@ -692,12 +692,7 @@ private void processAnnotationMethod(boolean queriedOnly, Method method) {
692
692
Class <?> annotationClass = method .getDeclaringClass ();
693
693
Class <?> proxyClass = Proxy .getProxyClass (annotationClass .getClassLoader (), annotationClass );
694
694
try {
695
- /*
696
- * build-time condition as it is registered during analysis GR-62516, this should be
697
- * deleted
698
- */
699
- var condition = TypeReachabilityCondition .create (proxyClass , false );
700
- register (condition , queriedOnly , proxyClass .getDeclaredMethod (method .getName (), method .getParameterTypes ()));
695
+ register (AccessCondition .unconditional (), queriedOnly , proxyClass .getDeclaredMethod (method .getName (), method .getParameterTypes ()));
701
696
} catch (NoSuchMethodException e ) {
702
697
/*
703
698
* The annotation member is not present in the proxy class so we don't add it.
@@ -706,11 +701,11 @@ private void processAnnotationMethod(boolean queriedOnly, Method method) {
706
701
}
707
702
708
703
@ SuppressWarnings ("deprecation" )
709
- private void processAnnotationField (AccessCondition cnd , Field field ) {
704
+ private void processAnnotationField (Field field ) {
710
705
Class <?> annotationClass = field .getDeclaringClass ();
711
706
Class <?> proxyClass = Proxy .getProxyClass (annotationClass .getClassLoader (), annotationClass );
712
707
try {
713
- register (cnd , false , proxyClass .getDeclaredField (field .getName ()));
708
+ register (AccessCondition . unconditional () , false , proxyClass .getDeclaredField (field .getName ()));
714
709
} catch (NoSuchFieldException e ) {
715
710
/*
716
711
* The annotation member is not present in the proxy class so we don't add it.
@@ -1272,7 +1267,7 @@ public void registerHeapReflectionField(Field reflectField, ScanReason reason) {
1272
1267
if (!reflectivityFilter .shouldExclude (reflectField )) {
1273
1268
registerTypesForField (analysisField , reflectField , false );
1274
1269
if (analysisField .getDeclaringClass ().isAnnotation ()) {
1275
- processAnnotationField (AccessCondition . unconditional (), reflectField );
1270
+ processAnnotationField (reflectField );
1276
1271
}
1277
1272
}
1278
1273
}
0 commit comments