Guys,
Given the following schema snippets:
<xs:element name="app">
<xs:complexType>
<xs:sequence>
<xs:element ref="comment-before-root" minOccurs="0"
maxOccurs="unbounded"/>
<xs:element ref="desc" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="desc">
<xs:complexType>
<xs:sequence>
...
</xs:sequence>
</xs:complexType>
</xs:element>
I get the following API for returning desc in the interface AppType:
DescType[] getDesc();
Of course the interface DescType inherits from interface Desc. I
don't care about the rationale behind *not* returning Desc[] in the RI
but I would like to know if there is a way I could customize it in JAXB
generation?
Naively changing the codes manually on my part result in
java.lang.ArrayStoreException eventually.
Thanks much, Han Ming