¡@

Home 

java Programming Glossary: receiverperson

JAXB inheritance, unmarshal to subclass of marshaled class

http://stackoverflow.com/questions/619761/jaxb-inheritance-unmarshal-to-subclass-of-marshaled-class

application. @XmlRootElement name person public class ReceiverPerson extends Person public doReceiverSpecificStuff ... Marshalling.. the JAXBContext using the package name of the subclassed ReceiverPerson . JAXBContext jaxbContext JAXBContext.newInstance package name.. jaxbContext JAXBContext.newInstance package name of ReceiverPerson What I want is to unmarshall to ReceiverPerson . The only way..