dev@jaxb.java.net

JAXB Wildcard

From: Erwann Leroy <leroy.erwann_at_gmail.com>
Date: Fri, 11 Mar 2016 15:58:43 +1100

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