BeanMethodInterceptor doesn't forward user-provided arguments to getBean(name, args) [SPR-12443] #17048
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Jorge Mozzino opened SPR-12443 and commented
Calling a prototype bean factory method with parameters ignores the parameters because they aren't passed to the getBean() call. If beans of the specified parameters' type exist then Spring will inject them into the prototype Bean. However, if they don't then a BeanCreationException will be thrown.
The following test reproduces the issue.
I have this issue fixed and can submit a pull request.
Affects: 4.1.2
Issue Links:
Referenced from: commits 4bd75e4
The text was updated successfully, but these errors were encountered: