Skip to content

ReflectivePropertyAccessor should not consider bridge methods [SPR-9994] #14628

@spring-projects-issues

Description

@spring-projects-issues

Phil Webb opened SPR-9994 and commented

The ReflectivePropertyAccessor findGetterForProperty and findSetterForProperty methods searches all methods for a name based match. If the class being searched implements an interface with generic types it possible that bridge methods will be incorrectly discovered.

As the order of Class.getMethods() is undetermined and JVM specific this issue is not consistently reproducible. See SWF-1438 for an example that fails on Windows but not Linux.


Affects: 3.1.3

Sub-tasks:

Issue Links:

Referenced from: commits 107fafb, 2ec41af

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions