Visitar URL original
Preserve modern JAX-WS APIs in mixed namespace dependency graphs by jkschneider · Pull Request #1400 · openrewrite/rewrite-migrate-java · GitHub
Skip to content

Preserve modern JAX-WS APIs in mixed namespace dependency graphs - #1400

Merged
jkschneider merged 6 commits into
openrewrite:mainfrom
jkschneider:java25-jaxws-namespace
Nov 3, 2026
Merged

jkschneider merged 6 commits into
openrewrite:mainfrom
jkschneider:java25-jaxws-namespace

Conversation

@jkschneider

@jkschneider jkschneider commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Normalizing a javax JAX-WS dependency to Jakarta EE 8 can displace a modern Jakarta API in the same graph. In ANET this forces the Jakarta 4 API required by CXF down to a javax-only version, so compilation loses jakarta.xml.ws/jakarta.jws classes.

Separate legacy and modern namespace graphs. Preserve modern WS/JWS APIs and reuse equivalent legacy APIs in the source scopes that need them. Promote an insufficient legacy scope without downgrading a modern API or introducing duplicate javax classes. Keep the Java EE 8 normalization path for legacy graphs. The scanner retains only paths, project IDs and source-set names, and leaves unparsed build files untouched.

Validation: 87 actual-source regressions/probes pass, including full-composite Maven/Gradle scope cases and ANET's original model; 17 scope cases fail against the prior implementation. Three independent accumulator/ownership probes pass, with the populated-graph probe failing against the previous heavyweight representation. Actual production source compiles for Java 8. Native CI also exercises the lightweight-accumulator and unparsed-source quality checks; no quality validation is disabled.

ANET passes its exact CLI-resolved Java 25 compile command; check reaches the baseline Docker connection limitation. The combined replay's complete verified tree is 7f563b22a22dcda3632c42ec68e9a59b16b10e09. Paired dependency reports reproduce Jakarta 4.0.3 -> 2.3.3 only after the broken migration.

@jkschneider
jkschneider marked this pull request as ready for review November 2, 2026 23:44
@jkschneider
jkschneider merged commit d1a0a7b into openrewrite:main Nov 3, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants