Skip to content

SpringValidatorAdapter's ObjectError subclass is not Serializable #23181

@nai2

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

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: regressionA bug that is also a regression

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions