Community
Participate
Working Groups
As can be seen in the following test case: org.eclipse.persistence.testing.jaxb.stax.XMLStreamWriterDefaultNamespaceTestCases This test marshals to an XMLStreamWriter (the implementation of which is parser-dependent). When using the Woodstox parser, the document is marshalled as: <root xmlns="someNamespace"><employee xmlns=""/></root> Which, from an EclipseLink standpoint, is how empty elements should be marshalled. However, in this case it would appear that using other XML parsers results in the following XML: <root xmlns="someNamespace"><employee xmlns=""></employee></root> This is not how EclipseLink should be marshalling an empty element. *** This issue was discovered because a Woodstox test started failing, so an additional check was added to this test case to accept both formats. It appears though that Woodstox was actually behaving properly, and the test case was previously coded to allow the incorrect behaviour in other parsers. When this bug is fixed this additional check should be removed. ***
See bug 339765 for more information.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink