JAXB Wildcard

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

JAXB Wildcard

Erwann Leroy
Hi,

Let me explain my question/problem ...

I have those Java objects :

---------------------------------------------------------
class Sample {
 void someMethod(B<G>);
}

enum G implements H {}

class B<T extends H> {
  T fieldT;
}

interface H {}
-------------------------------------------------------------- 

I'm trying to generate the WebService for the Sample class.
And I'm facing this problem  : "JAXB can't handle interface" because of the fieldT.
Why JAXB does not resolve T as G ?
Is there an another (best) way to do what I want ?

Thanks for your response.

Erwann





Loading...