TypeDescriptor throws NPE due to because AnnotatedElement proxy is not cloning arrays #22695
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: regression
A bug that is also a regression
Milestone
Similar to #22655, the
TypeDescriptor.AnnotatedElementAdapter
class does not defensively clone the returned array. This means that second calls can result in the following NPE:The arrays is also returned from the public
getAnnotations()
andgetDeclaredAnnotations()
methods.The text was updated successfully, but these errors were encountered: