Tolerate AnnotationUtils.isCandidateClass
call with null
as annotation type
#30842
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: enhancement
A general enhancement
Milestone
AnnotationUtils.isCandidateClass(Class<?> clazz, Class<? extends Annotation> annotationType)
is being called fromisCandidateClass(Class<?> clazz, Collection<Class<? extends Annotation>> annotationTypes)
where the elements can potentially benull
, for example in the case of incompleteInitDestroyAnnotationPostProcessor
setup. The implementation should therefore defensively tolerate anull
argument there and simply returnfalse
for it.The text was updated successfully, but these errors were encountered: