Skip to content

Revise core.convert Converter SPI to not a throw checked Exception for the typed convert method [SPR-6138] #10806

@spring-projects-issues

Description

@spring-projects-issues

Keith Donald opened SPR-6138 and commented

Converters can be called directly by application code, or other code other than a ConversionService facade. Therefore the central convert operation should not throw a general Exception type but rather declare a @throws IllegalArgumentException in the JavaDoc instructing the developer to throw a RuntimeException after a conversion failure.


Affects: 3.0 M4

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