Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAXB can't handle interfaces.

 
El El
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a problem with jaxb and I was wondering if someone came across with it:
I have a class (class Car) that implements an interface (interface CarIfc), and I want to be able to marshall and unmarshall the Car class.
when activating the JaxbMarshaller, I get the following error:
Car is an interface, and JAXB can't handle interfaces.
do you have any idea how can I use interfaces in JAXB?
If not, is there any other XML framework that handles interfaces?

thanks in advance
 
Paul Clapham
Sheriff
Posts: 21416
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"El El", please check your private messages for an important moderator message. (To see your private messages, click on the "get_profile" icon, that's the first of the little icons at the top of your post, and go from there.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic