AOT-generated code produces deprecation warnings when referencing a nested class of a deprecated class #33273
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
theme: aot
An issue related to Ahead-of-time processing
type: bug
A general bug
Milestone
Affects: 6.x
MockitoPostProcessor
has been deprecated in Spring Boot. AOT processing of an application's tests generates code like this:This results in a deprecation warning for
MockitoPostProcessor
.Note that the generated code correctly suppresses warnings for using
MockitoPostProcessor
directly:Referring to the
SpyPostProcessor
nested class appears to be enough to throw off the deprecated API detection.The text was updated successfully, but these errors were encountered: