New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Non-deterministic definition of default namespace @XmlSchema(namespace=...) in package-info.java #1682
Comments
…@XmlSchema(namespace=...) in package-info.java Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
…amespace=...) in package-info.java Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
… @XmlSchema(namespace=...) in package-info.java Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com> (cherry picked from commit adeec65)
…namespace=...) in package-info.java Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com> (cherry picked from commit adeec65)
@lukasj After we upgraded from JAXB-RI 4.0.2 to 4.03 we started getting form=qualified added to all our xsd elements that are generated using the com.sun.xml.ws:jaxws-maven-plugin. We don't find anything in the JAXB-RI release notes that seem related, but we stumbled on this change and It seems like it could be related. Do you know of a way to stop that from happening? I've tried adding the following to the package-info.java @jakarta.xml.bind.annotation.XmlSchema ( For example using JAXB-RI 4.0.3 "element1" has form="qualified"... <xs:element name="element1" type="xs:string" form="qualified" nillable="true" minOccurs="0" maxOccurs="unbounded"/> If I move back to JAXB-RI 4.0.2 then form="qualified" is gone. <xs:element name="element1" type="xs:string" nillable="true" minOccurs="0" maxOccurs="unbounded"/> I am aware that it is recommended to qualify all elements, but I am hesitant to inform all of our clients as it would require them to modify their SOAP requests, and I fear the potential backlash that could result from it. |
that regression is now fixed |
Dear community,
I observe the following behavior on XJC v4.0.1:
The value of
namespace
member of@XmlSchema
is not defined in deterministic way, i.e. it changes from run to run. In particular when model for this XSD is generated, it results either thispackage-info.java
:or this:
In case if sources are regenerated from time to time and committed to source repository, it results excessive differences (because default namespace is skipped in annotations for generated classes).
The text was updated successfully, but these errors were encountered: