David Yu

Results 66 comments of David Yu

Have you checked out [delegates](https://protostuff.github.io/docs/protostuff-runtime/delegate/)? It should be able to solve your problem.

> that is called to return a possibly modified version, or another object, just like readResolve() does. You write and register a delegate and return the version (depending on the...

> Null element in collection will be ignored instead of throws an exception. While i add null element to a List, serializes and then deserializes, the List deserialized with out...

What jvm version? The Map subclass/impl used underneath seems to be a new one that is not included in ```MapSchema.MessageFactories```

@zhuyiren You are correct. It should be clazz.getName().

No immediate plans at the moment. If implemented, it will be for 1.9.x

1. Use a pojo that wraps the buffer. 2. Register a [delegate](http://www.protostuff.io/documentation/runtime-schema-delegate/) for the byte buffer.

Any code samples? You're likely using it wrong. Remember to always pass pojo classes to `RuntimeSchema.getSchema`. Definitely not `List` nor `Map`

These will not work. ``` byte[] serialize2 =ProtostuffUtil.serialize(map1); Map map2 = ProtostuffUtil.deserialize(serialize1, HashMap.class); ``` Always pass pojos. Not maps/collections/string/number/enums etc.

Register a [delegate](http://www.protostuff.io/documentation/runtime-schema-delegate/) for that.