Skip to content

CompositeStringExpression doesn't use the ConversionService [SPR-6278] #10945

@spring-projects-issues

Description

@spring-projects-issues

Oliver Becker opened SPR-6278 and commented

Method org.springframework.expression.common.CompositeStringExpression.getValue(...) simply calls ObjectUtils.getDisplayString for creating the resulting string.
Since Spring provides a ConversionService, a proper toString TypeConverter should be used instead.
(if canConvert returns true, otherwise use getDisplayString)


Affects: 3.0 RC1

Referenced from: commits 3361de3

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: 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