users@jaxb.java.net

No class generated for element with type="int" (xjc)

From: Martin Grotzke <martin.grotzke_at_javakaffee.de>
Date: Mon, 10 Mar 2008 16:59:56 +0100

Hi,

in my schema I have an element of type int, for that xjc does not
generated a java class:

<element name="myElement" type="int" />

I invoke xjc like this:

$ xjc -p org.comp.proj -d target/generated-sources/xjc -verbose src/main/api-schema

I would expect that xjc generated a class MyElement annotated with
@XmlRootElement.

Is this an issue of xjc, or am I doing s.th. wrong?

xjc -version gives "JAXB 2.1.3 in JDK 1.6".

Thanx && cheers,
Martin