I am trying to use JAXB\'s introspection to marshall and unmashall some existing domain objects marked up with JAXB annotations. Most things work as expected, but I am havin
How about
public class Range<**E extends Number**> implements Serializable { ...
Number is a class
I bet JAXB knows default marshalling/unmarshalling rules for Number
For unmarshalling to specific type, you need XmlAdapter as I described here: JAXB inheritance, unmarshal to subclass of marshaled class