Regression: Ambiguous attribute converters as converter for parent type is also asigned

Description

I have two custom datatypes: A and B where B extends A.
Also I do have AAttributeConverter for A and BAttributeConverter for B (both with @Converter(autoApply = true)).
This scenario works fine with hibernate 5.0.9.Final.
However, when I update to recent 5.2.8.Final I get this error:

The property MyBean.value has type B that extends A. As BAttributeConverter is more specific and AAttributeConverter can not actually handle B hibernate should IMHO not consider AAttributeConverter here.

Environment

None

Assignee

Unassigned

Reporter

Jörg Hohwiller

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure