Unmarshalling using JAXB
问题 I am new to java (coming from c#.net background) and was trying the above example to marshal and unmarshal. Following the link below Marshalling a List of objects implementing a common interface, with JaxB using the above technique as mentioned by Mr.Blaise Doughan, I was able to marshal the java objects to xml. But when i save this xml and try to unmarshal the xml back to java object i get the following on the console: com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 2