Revise ClassUtils.getMostSpecificMethod to check that provided method really belongs to the provided class hierarchy #23824
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: declined
A suggestion or change that we don't feel we should currently apply
The
ClassUtils.getMostSpecificMethod()
doesn't check any correlations between atargetClass
andmethod.getDeclaringClass()
causing unexpected behavior when a maybe method requested from fully different hierarchy.See discussion here: https://github.com/spring-projects/spring-integration/pull/3082/files#r335614474
The text was updated successfully, but these errors were encountered: