-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ChangePackage doesn't handle classes with GWT JNSI methods #4995
Comments
Thanks for the runnable report! Feel free to open up a draft PR; that makes it easier to pull into an IDEA and explore. We're not too strict on requiring an issue or working fix first. |
Hmm... looks i've made some errror on my side, the reproducer isn't correct. |
We did encounter issues with the ChangePackage recipe and it looked like is had to to with native methods. Will try to create a proper reproducer tomorrow. Do you have another channel for quick questions, besides |
Sure, always welcome on our Slack! :) |
An even smaller reproducer shows that the trailing comment is causing the issue: import org.openrewrite.Foo;
interface Test {
void foo() /* */;
} |
Thanks for the helpful reproducer! Indeed something to fix in the parser then it seems. Did you already explore that side? |
No, i didn't look into the parser side yet and i probably don't have time until after the weekend. |
What version of OpenRewrite are you using?
I am using OpenRewrite v8.44.2 with the ChangePackage recipe.
What is the smallest, simplest way to reproduce the problem?
What did you expect to see?
What did you see instead?
OpenRewrite didn't touch the file. It seems like it ignores Java classes with
native
methods and/or trailing comment.See reproducer
The text was updated successfully, but these errors were encountered: