Skip to content

Revise ClassUtils.getMostSpecificMethod to check that provided method really belongs to the provided class hierarchy #23824

@artembilan

Description

@artembilan

The ClassUtils.getMostSpecificMethod() doesn't check any correlations between a targetClass and method.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

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)status: declinedA suggestion or change that we don't feel we should currently apply

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions