Skip to content

Adjust Java.Class inheritance hierarchy for ChangePackage and ChangeType#6498

Merged
sambsnyd merged 6 commits intoopenrewrite:mainfrom
BoykoAlex:change-package-inherited-types
Jan 15, 2026
Merged

Adjust Java.Class inheritance hierarchy for ChangePackage and ChangeType#6498
sambsnyd merged 6 commits intoopenrewrite:mainfrom
BoykoAlex:change-package-inherited-types

Conversation

@BoykoAlex
Copy link
Copy Markdown
Contributor

Java type inheritance is not updated after ChangePackage or ChangeType recipe is performed. This change would also look at java class type interfaces and super type to update the type binding class hierarchy.
(Note: leaving annotations alone as it seems like a rabbit hole)

@timtebeek timtebeek added bug Something isn't working recipe Requested Recipe java labels Jan 8, 2026
@timtebeek timtebeek moved this from In Progress to Ready to Review in OpenRewrite Jan 8, 2026
Copy link
Copy Markdown
Member

@timtebeek timtebeek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the immediate fix @BoykoAlex ; quality work as always. I've applied a few minor touch ups, mostly to the assertions to make sure we always see and expect exactly one element that matches the condition.

@sambsnyd sambsnyd merged commit 1305955 into openrewrite:main Jan 15, 2026
2 checks passed
@github-project-automation github-project-automation Bot moved this from Ready to Review to Done in OpenRewrite Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working java recipe Requested Recipe

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants