Skip to content

Fix SpEL JavaBean compliance for setters [SPR-10122] #14755

@spring-projects-issues

Description

@spring-projects-issues

David Boden opened SPR-10122 and commented

#13761 changed SPEL so that it was in line with the JavaBean specification for attributes with lowercase first letters and uppercase second letters like:

iD
pNDV

Changes were made to: org.springframework.expression.spel.support.ReflectivePropertyAccessor

This method was updated under change #13761, so that it checks the 2nd character in the name as a special case (line 312):

protected Method findGetterForProperty(String propertyName, Class<?> clazz, boolean mustBeStatic)

The corresponding method for setters was not updated (line 344):

protected Method findSetterForProperty(String propertyName, Class<?> clazz, boolean mustBeStatic)

Affects: 3.2 GA

Issue Links:

Referenced from: commits 0ed9cb2, d91a419

1 votes, 4 watchers

Metadata

Metadata

Assignees

No one assigned

    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