Issue #1251: Ensure DynamicSerializationManager encodes the registered type when using serialization adapters.
Change-Id: I2d66647f953ded122a328e71e27cad37091d35c3 Former-commit-id:63ada2b05b
[formerly86480283e0
] [formerly11dbb6f90c
] [formerly63ada2b05b
[formerly86480283e0
] [formerly11dbb6f90c
] [formerly32a2b34efe
[formerly11dbb6f90c
[formerly b1a6f7936f93f664ad8b9fe6a05328783a990ed2]]]] Former-commit-id:32a2b34efe
Former-commit-id:2a7e7c7518
[formerlydc354717be
] [formerly cdfb57ef1c50dbe6afe6820f621aacc88c088553 [formerlycdeb78c828
]] Former-commit-id: 606722d3d640d8ef5c1395f37ed2d834be73b78a [formerlye524ae2776
] Former-commit-id:8b35fc021a
This commit is contained in:
parent
4247c6b867
commit
52a9930efa
1 changed files with 5 additions and 3 deletions
|
@ -80,6 +80,9 @@ import com.vividsolutions.jts.geom.Geometry;
|
|||
* Date Ticket# Engineer Description
|
||||
* ------------ ---------- ----------- --------------------------
|
||||
* Aug 13, 2008 #1448 chammack Initial creation
|
||||
* Oct 08, 2012 #1251 dgilling Ensure type registered with
|
||||
* serialization adapter is encoded
|
||||
* in serialization stream.
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
|
@ -311,11 +314,10 @@ public class DynamicSerializationManager {
|
|||
if (attribs.serializationFactory == null) {
|
||||
Class<?> superClazz = c.getSuperclass();
|
||||
while (superClazz != null && attribs.serializationFactory == null) {
|
||||
SerializationMetadata superMd = serializedAttributes
|
||||
.get(superClazz.getName());
|
||||
SerializationMetadata superMd = inspect(superClazz);
|
||||
if (superMd != null && superMd.serializationFactory != null) {
|
||||
attribs.serializationFactory = superMd.serializationFactory;
|
||||
attribs.adapterStructName = c.getName();
|
||||
attribs.adapterStructName = superMd.adapterStructName;
|
||||
}
|
||||
superClazz = superClazz.getSuperclass();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue