Issue Bug Closed

#75232Spread TypeConverter priorities

Bernhard Kraft 03/22/16, 20:09 updated 10/02/18, 11:18

Description

The priorities of the “TypeConverter” classes are quite packed. At the moment there are only two TypeConverter’s with concurring source/target types. These are the “ObjectConverter” and the “PersistentObjectConverter” TypeConverter classes.

The “ObjectConverter” has a priority of “0” (the only one with zero priority) while the “PersistentObjectConverter” has a priority of “1”.

With the current situation it is not possible to create a custom TypeConverter with higher priority than “ObjectConverter” but lower than “PersistentObjectConverter”.

Solution: Raise the priority of every TypeConverter to “10” instead of “PersistentObjectConverter” which should win against “ObjectConverter” by having a priority of 20.

Reviews 2