You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried the following version:
<rewrite.java.version>8.47.3</rewrite.java.version>
Error message:
%ERROR 3,testRecipe2(com.company.commonlibrary.openrewriterecipes.mje.ReplaceRmConfigurationMethodTest)
%TRACES
java.lang.IllegalStateException: LST contains missing or invalid type information
Identifier->MethodInvocation->MethodInvocation->NamedVariable->VariableDeclarations->Block->MethodDeclaration->Block->ClassDeclaration->CompilationUnit
/*~~(Identifier type is missing or malformed)~~>*/Mje
https://docs.openrewrite.org/reference/faq#im-seeing-lst-contains-missing-or-invalid-type-information-in-my-recipe-unit-tests-how-to-resolve
at org.openrewrite.java.Assertions.assertValidTypes(Assertions.java:124)
at org.openrewrite.java.Assertions.validateTypes(Assertions.java:61)
at org.openrewrite.test.RewriteTest.rewriteRun(RewriteTest.java:508)
at org.openrewrite.test.RewriteTest.rewriteRun(RewriteTest.java:129)
at com.company.commonlibrary.openrewriterecipes.mje.ReplaceRmConfigurationMethodTest.testRecipe2(ReplaceRmConfigurationMethodTest.java:55)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
%TRACEE
The error message does not really tell what is wrong since the type is included in test using SourceSpec.
These classes should be possible to run and they can be found in this slack thread
What version of OpenRewrite are you using?
I tried the following version:
<rewrite.java.version>8.47.3</rewrite.java.version>
Error message:
The error message does not really tell what is wrong since the type is included in test using SourceSpec.
These classes should be possible to run and they can be found in this slack thread
https://rewriteoss.slack.com/archives/C01A843MWG5/p1741007730479919
br,
//mikael
The text was updated successfully, but these errors were encountered: