JAXB Wildcard

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

JAXB Wildcard

Erwann Leroy

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.