The generics on collections seems to cache the first member type.
For example, if I have a POJO containing...
private List<Athing> athings;
private List<Bthing> bthings;
The wsdl will tend to show both as ArrayOfAthing...
<xsd:sequence>
<xsd:element name="athings" type="tns:ArrayOfAthing" nillable="true"/>
</xsd:sequence>
<xsd:sequence>
<xsd:element name="bthings" type="tns:ArrayOfAthing" nillable="true"/>
</xsd:sequence>
This is a serious problem. It even occurs if athings and bthings arer in separate POJOs.
My temporary workaround is to use different collection classes List, ArrayList, Collection, but this kind of defeats the whole point because
I'm hacking my POJOs and (ii) I'm running out of collection classes!
Any ideas/suggestions? Can I force the type using java5 annotations (XmlElement) ?