Skip to content

ConversionService cannot convert from Object to String anymore by default [SPR-11693] #16315

@spring-projects-issues

Description

@spring-projects-issues

Oliver Drotbohm opened SPR-11693 and commented

On Spring 3.2.8 a default ConversionService instance (e.g. DefaultFormattingConversionService will answer the following call with true:

conversionService.canConvert(Object.class, String.class);

As of Spring 4.0.1 the same call returns false which is due to that change (introduced for #15884). From the commit however, it's not quite clear why the implementation of ObjectToObjectConverter now explicitly excludes String.valueOf(…).


Affects: 4.0.1, 4.0.2, 4.0.3

Issue Links:

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions