Not able to deserialize derived class object
--------------------------------------------
Key: MSGPACK-79
URL:
http://jira.msgpack.org/browse/MSGPACK-79
Project: MessagePack
Issue Type: Task
Components: Java
Environment: MessagePack - CentOs - Eclipse 3.7
Reporter: muzammil
Assignee: FURUHASHI Sadayuki
public class A
{
private InnerClass obj;
//Some other variables with getters and setters.
// There will be a getter and setter for obj(InnerClass) aswell.
}
class InnerClass
{
//Some variables with getters and setters.
}
class InnerDerivedClass extends InnerClass
{
//some variables with getters and setters.
}
I like to serialize my java class object using Messagepack. My class structure is described above. What I like to do is to create the object for InnerDerivedClass and assign some values to it. Then I would add the object to the Class A as base class object.Now when I serialize and deserialize the Class A object with Messagepack I am not able to get the object as InnerDerivedClass object rather its comes as InnerClass obj. How can I achieve this using MessagePack. I am not using any annotations rather I register each class in the messagepack.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira