users@jersey.java.net

[Jersey] : JAXB and Java interfaces

From: Arthur Yeo <artyyeo_at_gmail.com>
Date: Wed, 9 Feb 2011 14:23:05 -0800

Tried the different options in (
http://jaxb.java.net/guide/Mapping_interfaces.html) but they all failed.

I also saw some errors related to no-args constructors allowed.

As a workaround, I created another object layer and copied the contents
across to this new base object and it worked.
The extra steps during run-time is going to come back as a perf issue later.
Seems quirky to me.
If you guys know of a better way, please chime in.



On Wed, Feb 9, 2011 at 9:59 AM, Arthur Yeo <artyyeo_at_gmail.com> wrote:

> Hi All,
>
> I just got a run-time error about JAXB not handling java interfaces.
> What's the work around besides not using Interfaces?
>
> Is the limitations for JAXB not handling interfaces documented somewhere?
>
> --
> Arthur Y.
>



-- 
Arthur Y.