Interpolation of primitive arrays causes a ClassCastException

Description

i learn springboot validation with hibernate-validator recently.
i write some custom validator
however it not work when i custom message
i want to valid a enum flag

relation class:




controller


messages.properties


error!!!

Environment

spring-boot-2.2.5
jdk11
spring-boot-starter-validation

Activity

Show:
Guillaume Smet
July 2, 2020, 5:28 PM

Thanks for reporting this.

The issue was fixed by Alexander Gatsenko.

While waiting for the next releases, you can just use Integer[] instead of int[] and that should do the trick.

Assignee

Unassigned

Reporter

deng A

Labels

Feedback Requested

2020/03/24

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

backportDecision

None

backportReEvaluate

None

Time tracking

32h

Components

Fix versions

Affects versions

Priority

Major
Configure