Skip to content
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

Unexpected form=qualified Attribute in XSD Elements After Upgrading to JAXB-RI 4.0.3 #1742

Closed
danshome opened this issue Sep 7, 2023 · 1 comment · Fixed by #1752
Closed

Comments

@danshome
Copy link

danshome commented Sep 7, 2023

After we upgraded from JAXB-RI 4.0.2 to 4.03, we started getting form=qualified added to all our xsd elements generated using the com.sun.xml.ws:jaxws-maven-plugin. I don't find anything in the JAXB-RI release notes explaining the new behavior.

I tried adding the following to package-info.java, to revert to the old behavior. It didn't work whether I included the namespace or not.

@jakarta.xml.bind.annotation.XmlSchema (
elementFormDefault= XmlNsForm.UNQUALIFIED
)

For example, using JAXB-RI 4.0.3 "element1" was generated with 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"/>

Is this expected behavior moving forward, or is this a bug? If it is expected, could you please provide me with information about the expected behavior? It would be helpful if you could direct me to the release notes related to this change or any reference that I can use for my own release notes. This would mean all our clients will need to update their code, and it would be great to have something specific to share with them regarding the change in behavior.

Thanks!

@cachescrubber
Copy link

The next issue reporting a braking change between 4.0.2 and 4.0.3.

See #1731, #1724

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants