What version of OpenRewrite are you using?
v8.91.3 (latest)
What is the smallest, simplest way to reproduce the problem?
ChangePackage fails to rewrite {@link} references in a package-info.java file's Javadoc.
Recipe:
new ChangePackage("org.openrewrite", "org.openrewrite.test", true)
Before (package-info.java):
/**
* See {@link org.openrewrite.Existing}
*/
package com.example;
What did you expect to see?
/**
* See {@link org.openrewrite.test.Existing}
*/
package com.example;
What did you see instead?
No change — the recipe silently no-ops on the file. The same Javadoc on a class instead of a package declaration is rewritten correctly.
What version of OpenRewrite are you using?
v8.91.3 (latest)
What is the smallest, simplest way to reproduce the problem?
ChangePackagefails to rewrite{@link}references in apackage-info.javafile's Javadoc.Recipe:
Before (
package-info.java):What did you expect to see?
What did you see instead?
No change — the recipe silently no-ops on the file. The same Javadoc on a class instead of a package declaration is rewritten correctly.