Skip to content

test(java): reproduce package-info.java Javadoc {@link} not rewritten by ChangePackage (#8731) - #8732

Draft
SamBarker wants to merge 2 commits into
openrewrite:mainfrom
SamBarker:fix/nested-packagechange
Draft

test(java): reproduce package-info.java Javadoc {@link} not rewritten by ChangePackage (#8731)#8732
SamBarker wants to merge 2 commits into
openrewrite:mainfrom
SamBarker:fix/nested-packagechange

Conversation

@SamBarker

@SamBarker SamBarker commented Sep 1, 2026

Copy link
Copy Markdown

What's changed?

What's your motivation?

Anything in particular you'd like reviewers to focus on?

  • I looked into the root cause and it goes deeper than ChangePackage itself — see my comment on ChangePackage/ChangeType do not apply to package-info.java Javadoc #8731 for what I found. It spiraled in scope beyond what felt appropriate for me to attempt solo, so I'm opening this with just the failing test and would welcome input from someone with more experience in this part of the parser.

Checklist

ChangePackage does not rewrite {@link} type references in Javadoc
attached to a package declaration in package-info.java, even though
the same Javadoc on a class works correctly.

Fixes openrewrite#8731

Assisted-by: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: Sam Barker <sam@quadrocket.co.uk>
@SamBarker
SamBarker marked this pull request as draft September 1, 2026 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

ChangePackage/ChangeType do not apply to package-info.java Javadoc

1 participant