The Jakarta JAXB migration upgrades EclipseLink MOXy to 3.0 - #1270
Merged
jkschneider merged 1 commit intoOct 4, 2026
Merged
Conversation
jkschneider
force-pushed
the
jakarta/moxy-3
branch
from
October 3, 2026 22:26
c3788c3 to
a8ccda7
Compare
jkschneider
added this pull request to stack #1284
October 4, 2026 09:43
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MOXy 2.x implements
javax.xml.bind, so itsJAXBContextFactory.createContextreturns ajavax.xml.bind.JAXBContextthat the migrated callers can no longer assign tojakarta.xml.bind.JAXBContext.JavaxXmlBindMigrationToJakartaXmlBindnow upgradesorg.eclipse.persistence:org.eclipse.persistence.moxyto 3.0.x, the first line built on Jakarta XML Binding 3, withUpgradeDependencyVersion, so a newer MOXy is kept. A build that also pinsorg.eclipse.persistence.core2.x beside MOXy is not handled, since none of the repositories had one.Found by a team of coding agents reviewing a Moderne run of
org.openrewrite.java.migrate.jakarta.JavaxMigrationToJakartaover the 31 Arquillian repositories (run 20261003120559-YQoma). The issue ismoxy-2-retainedin the run'sio.moderne.RecipeIssuesdata table (1 row), and the fix was discussed and reviewed on the run's message board. A row from the table, as a generalized example:The JAXB migration retains MOXy 2 whose factory and annotations use javax JAXB. (
arquillian/arquillian-recorder,arquillian-recorder-reporter/arquillian-recorder-reporter-api/pom.xml, recipeorg.openrewrite.java.migrate.jakarta.JavaxMigrationToJakarta)Before:
What the recipe produced:
Expected:
Stacked on #1269 (7 of 19); merge that one first.