Comment 6 for bug 744035

Revision history for this message
Prageeth Silva (prageethsilva) wrote :

I have completely removed Serializable from the KeyValuePairData class.
Now it's set to take in an Object (given that only serializable objects can be passed to the server anyhow).
In the setValue(Object) method, it's automatically converted to a byte array (please note that this is valid for any Object, whether it's serializable or not).
Similarly getValue() automatically converts the byte array to an Object and returns the object.
This preserves the client API interface as it takes an Object and returns and Object.
In terms of performance, I doubt it'll be an issue as I've used Streams to convert the object back and forth and the overheads can be negligible.

However, another major bug has appeared (most probably due to the some runtime error after modifying the custom annotations).