Skip to content
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

IncompatibleClassChangeError on JUnit migration #3330

Closed
hohwille opened this issue Jun 16, 2023 · 2 comments
Closed

IncompatibleClassChangeError on JUnit migration #3330

hohwille opened this issue Jun 16, 2023 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@hohwille
Copy link

What version of OpenRewrite are you using?

I am using rewrite-maven-plugin:5.2.1

How are you running OpenRewrite?

I am using maven 3.8.6, see plugin version above.
Recepie: org.openrewrite.java.spring.boot2.SpringBoot2JUnit4to5Migration
Dependency: org.openrewrite.recipe:rewrite-spring:4.35.0

Is your project public? Nope. unfortunately not. But it is a multi-module project with hundreds of maven modules.

What is the smallest, simplest way to reproduce the problem?

mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.recipeArtifactCoordinates="org.openrewrite.recipe:rewrite-spring:4.35.0" -DactiveRecipes="org.openrewrite.java.spring.boot2.SpringBoot2JUnit4to5Migration"

What did you expect to see?

BUILD SUCCESS

What did you see instead?

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:07 h
[INFO] Finished at: 2023-06-16T18:02:23+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.openrewrite.maven:rewrite-maven-plugin:5.2.1:run (default-cli) on project project-aggregator: Execution default-cli of goal org.openrewrite.maven:rewrite-maven-plugin:5.2.1:run failed: An API incompatibility was encountered while executing org.openrewrite.maven:rewrite-maven-plugin:5.2.1:run: java.lang.IncompatibleClassChangeError: org.openrewrite.Recipe and org.openrewrite.Recipe$AdHocRecipe disagree on InnerClasses attribute

What is the full stack trace of any errors you encountered?

java.lang.IncompatibleClassChangeError: org.openrewrite.Recipe and org.openrewrite.Recipe$AdHocRecipe disagree on InnerClasses attribute

Are you interested in contributing a fix to OpenRewrite?

nope. We integrated openrewrite into devonfw-ide and I now wanted to do a real life test that unfortunately failed.

@hohwille hohwille added the bug Something isn't working label Jun 16, 2023
@timtebeek timtebeek moved this to Backlog in OpenRewrite Jun 16, 2023
@timtebeek
Copy link
Contributor

Have you tried with the 5.x line of rewrite-spring instead of 4.x?
https://github.com/openrewrite/rewrite-spring/releases

@timtebeek timtebeek added question Further information is requested and removed bug Something isn't working labels Jun 16, 2023
@timtebeek timtebeek moved this from Backlog to Recipes Wanted in OpenRewrite Jun 16, 2023
@timtebeek timtebeek moved this from Recipes Wanted to Backlog in OpenRewrite Jun 16, 2023
@timtebeek timtebeek removed the status in OpenRewrite Jun 16, 2023
@timtebeek
Copy link
Contributor

Closing due to inactivity & use of incompatible versions of the plugin versus individual modules. We already separately track documenting compatible versions, so there's likely no further improvements to be had here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
Archived in project
Development

No branches or pull requests

2 participants