Identify invalid factory methods AOT when possible #32794
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
theme: aot
An issue related to Ahead-of-time processing
type: enhancement
A general enhancement
Milestone
As discussed with @snicoll and @jhoeller while working on #32719,
InstanceSupplierCodeGenerator#generateCode
currently does not perform the same checks thanorg.springframework.beans.factory.support.ConstructorResolver#instantiateUsingFactoryMethod
except the recent suspending function check added recently.It would be nice from a DevXP and consistency perspective if it could perform AOT some of those checks (like the void return type check for example).
The text was updated successfully, but these errors were encountered: