eclipse-ee4j / metro-jax-ws

metro-jax-ws
https://eclipse-ee4j.github.io/metro-jax-ws/
BSD 3-Clause "New" or "Revised" License
70 stars 40 forks source link

Fix for bug 28773106 #610

Closed Tomas-Kraus closed 1 year ago

Tomas-Kraus commented 2 years ago

Here the issue is that The @XmlElement(nillable=false) doesn't work with String[] i.e. nillable attribute is not honored by any array elements

So for the fix I have removed the check nav.isArray(type) from AbstractWrapperBeanGenerator.processXmlElement which sets nillable to true for all array type elements

Signed-off-by: vavishal vaibhav.vishal@oracle.com

Source: https://github.com/javaee/metro-jax-ws/pull/1254 Author: vavishal

lukasj commented 1 year ago

handled by com.sun.xml.ws.jaxb.allowNonNillableArray=true|false property