-
Notifications
You must be signed in to change notification settings - Fork 78
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
Joda Recipe NullpointerException when visting Java Records #635
Comments
Thanks for the report! This one is a bit puzzling, given that it's reporting an error on line 86 here: rewrite-migrate-java/src/main/java/org/openrewrite/java/migrate/joda/ScopeAwareVisitor.java Lines 85 to 94 in 2f005af
Any clue @amishra-u ? |
It looks like scopes.peek() is null rewrite-migrate-java/src/main/java/org/openrewrite/java/migrate/joda/ScopeAwareVisitor.java Line 46 in 2f005af
|
We need to update the preVisit method in ScopeAwareVisitor to handle Record. As with Records, classes can have variable as parameter (not sure the right term)
|
What version of OpenRewrite are you using?
I am using
How are you running OpenRewrite?
I am using the Maven CLI , and my project is a multi module project.
mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-migrate-java:RELEASE -Drewrite.activeRecipes=org.openrewrite.java.migrate.joda.JodaTimeRecipe -Drewrite.exportDatatables=true
What is the full stack trace of any errors you encountered?
Are you interested in contributing a fix to OpenRewrite?
The text was updated successfully, but these errors were encountered: