This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: tutorial on using Kawa annotations with JAXB to serialize XML


On 01/07/2011 11:32 AM, Jamison Hope wrote:
In the section on unmarshalling:
"You create an Unmarshaller from the , and then just invoke one of the
Unmarshaller unmarshall methods."

Presumably this should have "from the JAXBContext".

Thanks - fixed. (It was an HTML formatting bug.)



I'm not sure how to reproduce that in Kawa. I tried
(contents (@XmlElements [(@XmlElement name: "simple" type: Simple)
(@XmlElement name: "sequence" type: Sequence)
(@XmlElement name: "struct" type: Struct)])
::ArrayList)

but I got
java.lang.UnsupportedOperationException
at
gnu.bytecode.RuntimeAnnotationsAttr.assignConstants(RuntimeAnnotationsAttr.java:306)

Please try the attached patch. -- --Per Bothner per@bothner.com http://per.bothner.com/

Attachment: ann.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]