Open
Description
As discussed with @snicoll and @jhoeller while working on #32719, InstanceSupplierCodeGenerator#generateCode
currently does not perform the same checks than org.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).
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
snicoll commentedon May 11, 2024
What I would like to see is a way to run those checks with some sort of API that allow to decouple them. There might be an interest to also accumulate those errors so that it doesn't fail one by one.