Skip to content

org.springframework.beans.DirectFieldAccessor fails to go through field paths recursively [SPR-9705] #14339

@spring-projects-issues

Description

@spring-projects-issues

Lukas Kalinski opened SPR-9705 and commented

Shortly put: having the WebDataBinder to call initDirectFieldAccess() will result in failure of resolving nested paths (i.e., if class A has a member of type/class B, then referencing that member will throw a NotReadablePropertyException).

I would suggest that you visit the following page for a detailed explanation of the problem.

http://forum.springsource.org/showthread.php?112464-Direct-Field-Access-Probelm

Both me and the poster in the link above have noticed that in org.springframework.beans.DirectFieldAccessor, no recursive calls to get properties of properties are made, and therefore it's not very surprising (anymore) that this just don't work.

I've set the priority to "critical" (even if it in fact is kind of a blocker for me, as I refuse to use property access).

Anyway, thank you for a great framework!

Kind regards,
Lukas, Sweden


Affects: 3.1.2

Issue Links:

Referenced from: commits 8221c9a

10 votes, 11 watchers

Metadata

Metadata

Assignees

Labels

has: votes-jiraIssues migrated from JIRA with more than 10 votes at the time of importin: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions