Skip to content

No type-based error code used by immutable form class when type conversion error occurs [SPR-16854] #21394

Closed

Description

@spring-projects-issues

Masatoshi Tada opened SPR-16854 and commented

I created src/main/resources/messages.properties and added some messages like below.

NotBlank={0} is required
NotNull={0} is required
typeMismatch.java.time.LocalDate={0} must be 'yyyy-MM-dd'

message=Message
birthday=Birthday

When type conversion error occurs, the message of typeMismatch.java.time.LocalDate is not used.

 


Affects: 5.0.6

Reference URL: https://github.com/MasatoshiTada/spring-mvc-form-sample/tree/master/01-immutable

Attachments:

Issue Links:

Referenced from: commits 955665b

Activity

  1. spring-projects-issues commented on Jul 17, 2018

    @spring-projects-issues
    CollaboratorAuthor

    Juergen Hoeller commented

    This will be available in the upcoming 5.1.0.BUILD-SNAPSHOT. Please give it an early try...

  2. spring-projects-issues commented on Aug 8, 2018

    @spring-projects-issues
    CollaboratorAuthor

    Masatoshi Tada commented

    I tried Spring 5.1.RC1 and I found it was fixed! Thank you!

  3. added
    type: enhancement
    in: web
    on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: webtype: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions