Skip to content

Introduce OptionalToObjectConverter #34544

Closed
@sbrannen

Description

@sbrannen

Overview

We have an ObjectToOptionalConverter since Spring Framework 4.1; however, we do not have a standard Converter for the inverse.

As discussed in #20433 (comment), it would beneficial to have an OptionalToObjectConverter.

Although its primary use would likely be in SpEL expressions, we should investigate whether it makes sense to register it by default in DefaultConversionService, especially since doing so would allow the OptionalToObjectConverter to be package-private like ObjectToOptionalConverter.

Related Issues

Metadata

Metadata

Assignees

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