Auto-apply converter not applied to primitives

Description

The Hibernate implementation for the Converter does not work according to the specification:

From the @Converter annotation javadoc (as of javax.persistence-api 2.2):

From the implementation of AutoApplicableConverterDescriptorStandardImpl.typesMatch(...):

The condition will be true in case e.g. converterDefinedType.getErasedType() is Boolean and checkType.getErasedType() is boolean.

Environment

None

Activity

Show:
Nathan Xu
September 3, 2020, 9:02 PM

PR created at:

Tassilo Karge
September 9, 2020, 2:44 PM

IMHO this should be backported to the next version in 5.4 as well.

Nathan Xu
September 9, 2020, 5:05 PM

Seems we won’t have new 5.4 release plan and will switch to 5.5 instead.

Assignee

Nathan Xu

Reporter

Tassilo Karge

Fix versions

Labels

backPortable

Backport?

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure