Skip to content

SpringValidatorAdapter's ObjectError subclass is not Serializable #23181

Closed

Description

@nai2

Since 5.1.7.RELEASE SerializationFailedException happens when storing BindingResult.getAllErrors() with Redis.

In a1efe3c SpringValidatorAdapter was changed to use anonymous class for ObjectError.
But such the implementation should be avoided because ObjectError implements Serializable.


Affects: 5.1.7.RELEASE
SEI CERT Oracle Coding Standard for Java

Activity

  1. added
    status: waiting-for-triage
    on Jun 24, 2019
  2. changed the title [-]Avoid anonymous class for Serializable[/-] [+]SpringValidatorAdapter's ObjectError subclass is not Serializable[/+] on Jun 24, 2019
  3. self-assigned this
    on Jun 24, 2019
  4. added
    in: core
    type: regression
    and removed
    status: waiting-for-triage
    on Jun 24, 2019
  5. added this to the 5.1.9 milestone on Jun 24, 2019
  6. added a commit that references this issue on Jul 5, 2019
    aeef959
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: coretype: regression

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions