AttributeConverter doesn't override built-in type mappings

Description

This works if you remove Serializable from MonetaryAmount.

The problem seems to be JavaTypeDescriptorRegistry#getDescriptor(Class), which gets a match for SerializableTypeDescriptor. If the class isn't Serializable, it passes through to FallbackJavaTypeDescriptor and everything works.

Environment

None

Status

Assignee

Steve Ebersole

Reporter

Christian Bauer

Fix versions

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Affects versions

Priority

Major
Configure