I've found that in JAXBEncoderDecoder#unmarshall, in case of abstract class
(like java.util.Calendar), is unmarshalled without class by JAXB what causes
in result mentioned error: "Unmarshalling Error: unexpected element (uri:"",
local:"from"). Expected elements are (none)".
Here is the "if" statement checking if class is abstract.
if (clazz == null || (!clazz.isPrimitive() && !clazz.isArray()
&& !clazz.isEnum()
&& (Modifier.isAbstract(clazz.getModifiers())
|| Modifier.isInterface(clazz.getModifiers())))) {
unmarshalWithClass = false;
}
Is it correct "Modifier.isAbstract(clazz.getModifiers()"? Can someone
confirm if it is a bug and real cause of problem? If I remove
"Modifier.isAbstract(clazz.getModifiers()" everything works fine.
BTW, I'm using CFX 2.0.4.
Thanks
Wojtek
--
View this message in context:
http://www.nabble.com/Problem-with-converting-to-Calendar-tp18359438p18363266.html
Sent from the cxf-user mailing list archive at Nabble.com.