Details
-
Bug
-
Resolution: Done
-
Major
-
12.1.2.Final
-
None
Description
The upgrade PR to ProtoStream 4.4.0.Beta3 made it so the protostream-type ProtoAdapters were registered with the GLOBAL, PERSISTENCE & USER serialization contexts. This was a mistake, they should only be registered with the USER context.
Registering the Adapters with the PERSISTENCE context means that any marshalling performed by the PersistenceMarshaller for one of these ProtoAdapter types will not be delegated to the user marshaller. For example, if the user has a BigInteger key, this will always be marshalled with ProtoStream even if the user has explicitly configured the JavaSerializationMarshaller.