Properly reset the context after constraint validation

Description

Posted here: https://stackoverflow.com/questions/45742578/hibernate-validatevalue-interaction-with-value-extractor

Validator.validateValue does not inject provided value to JavaFX's ObjectProperty and throws ClassCastException. Providing an ObjectProperty as the value to validateValue unwraps the value before attempting to set it.

EDIT: Test case: https://github.com/willieddy/hibernate-javafx-validate-value-test-case

In writing this test case, this bug isn't present in 5.4.1.Final

Environment

Hibernate version 6.0.1.Final, JavaFX version 8.0.101

Status

Assignee

Guillaume Smet

Reporter

William Eddy

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

Priority

Major
Configure