Skip to content

AbstractAdvisingBeanPostProcessor.isEligible(…) does not consider proxy interfaces [SPR-11725] #16347

@spring-projects-issues

Description

@spring-projects-issues

Oliver Drotbohm opened SPR-11725 and commented

If AbstractAdvisingBeanPostProcessor.isEligible(…) encounters a proxy instance it only checks the proxy target class and its methods for eligibility for proxying.

If the target class doesn't implement all methods the proxy exposes (because some generic interceptor on the proxy executes the methods exposed on a proxy interface), the processor might consider a bean ineligible although it actually is (due to methods only exposed on the interface and not the target classs).

I think ….isEligible(…) should also check for Advised and check the exposed interfaces as well.


Affects: 3.2.8, 4.0.3

Issue Links:

  • DATACMNS-498 Remove assumption guard in RepositoryFactorySupportUnitTests ("is depended on by")
  • DATACMNS-489 Add support for Future as return type for repository methods ("is depended on by")

Backported to: 3.2.9

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions