-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Validate the default JAXBContext at build time only if it is really u… #31666
Conversation
Thanks for your pull request! The title of your pull request does not follow our editorial rules. Could you have a look?
|
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from the comments, these changes cause a build cycle exception in the RESTEasy Reactive Jaxb tests.
extensions/jaxb/deployment/src/main/java/io/quarkus/jaxb/deployment/JaxbProcessor.java
Outdated
Show resolved
Hide resolved
extensions/jaxb/deployment/src/main/java/io/quarkus/jaxb/deployment/JaxbProcessor.java
Outdated
Show resolved
Hide resolved
extensions/jaxb/deployment/src/main/java/io/quarkus/jaxb/deployment/JaxbProcessor.java
Outdated
Show resolved
Hide resolved
in the application; do not validate if user provides his own JAXBContext bean or if there is no JAXBContext injection point quarkusio#31646
@Sgitario please feel free to re-review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔️ The latest workflow run for the pull request has completed successfully. It should be safe to merge provided you have a look at the other checks in the summary. |
Let's merge this as it is. |
On one hand, it looks like a nice general improvement. Having a catch-all default JAXBContext is definitely intuitive and user friendly, but it is very hard to say who should be responsible for solving the namespace conflicts. I do not feel like it should (always) be extension devs, because they might not know what the users want. Maybe sometimes the choice is clear, e.g. when one half of the conflicting classes is deprecated or outdated. Maybe in such situations |
…sed in the application; do not validate if user provides his own JAXBContext bean or if there is no JAXBContext injection point
Fix #31646