Add property -Djaxb.allowNonNillableArray=true #31
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The following issue has been reported by a customer:
The @xmlelement(nillable=false) doesn't work with String[] only. i.e. cannot
customized the default nillable element of String array.
DIAGNOSTIC ANALYSIS
The below doc specifies that default value for nillable is false
https://docs.oracle.com/javaee/7/api/javax/xml/bind/annotation/XmlElement.html#nillable()
So trying to override using @xmlelement(name="title01", nillable=true) and
@xmlelement(name="title01", nillable=false)
But the XSD artifact which is generated in output directory is always true.
xsd:sequence
<xsd:element name="arg0" type="xsd:string" minOccurs="0"
maxOccurs="unbounded" nillable="true"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="getEntitlementsResponse">
xsd:sequence
<xsd:element name="title01" type="xsd:string" minOccurs="0"
maxOccurs="unbounded" nillable="true"/>
</xsd:sequence