Does anybody know how to solve the problem caused by a complex element and its child with the same name?
Env: Ubuntu, Java 10, maven-jaxb2-plugin:0.13.3
XSD:
<xs:element name="TheSameName">
<xs:complexType>
<xs:sequence minOccurs="1" maxOccurs="unbounded">
<xs:element name="TheSameName">
<xs:complexType>
<xs:sequence>
<xs:any processContents="skip" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
BIND.XML
<jxb:bindings node="/xs:schema/xs:element[@name='TheSameName']">
<jxb:class name="TheSameNameList"/>
</jxb:bindings>
ERROR:
Complex type and its child element share the same name "TheSameName". Use a class customization to resolve this conflict.
With Java 8 was OK but with Java 10 no more :-( Any idea?
BR, Wianki