forked from quarkusio/quarkus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JAXB: Not bound classes annotated with XmlSchema to the JaxbContext
The classes annotated with @XmlSchema within package-info results into errors because the package-info is not a class. These changes fix this issue by adding a package-info.java class and not bounding this class to the JAXBContext. Fix quarkusio#27003
- Loading branch information
Showing
2 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
extensions/jaxb/deployment/src/test/java/io/quarkus/jaxb/deployment/info/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/** | ||
* The inclusion of this file is to verify that the produced JAXBContext works fine with it, otherwise the build fails. | ||
*/ | ||
@XmlSchema(namespace = "http://abc.com", xmlns = { | ||
@XmlNs(prefix = "abc", namespaceURI = "http://abc.com") | ||
}) | ||
package io.quarkus.jaxb.deployment.info; | ||
|
||
import javax.xml.bind.annotation.XmlNs; | ||
import javax.xml.bind.annotation.XmlSchema; |