validator.validateValue not working for wrapped values

Description

The error can simply be reproduced by using JavaFX properties. Here are some code snippets to reproduce the error:

Model:

Calling validator.validateValue(TestModel.class, "id", "123456789"); will end in the following RTE:

It looks like the extractValues method of ObservableValueValueExtractor can not be called since this needs a ObservableValue as parameter but Hibernate validator unwraps the value already earlier and passes the internal value (in this sample the id String) to the method instead of the property.

Environment

None

Status

Assignee

Unassigned

Reporter

Hendrik Ebbers

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Affects versions

Priority

Major
Configure