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
What is the full stack trace of any errors you encountered?
org.openrewrite.internal.RecipeRunException: java.lang.StackOverflowError
at org.openrewrite.TreeVisitor.visit (TreeVisitor.java:287)
at org.openrewrite.TreeVisitor.visitAndCast (TreeVisitor.java:317)
at org.openrewrite.java.JavaVisitor.visitRightPadded (JavaVisitor.java:1365)
at org.openrewrite.java.JavaVisitor.lambda$visitBlock$4 (JavaVisitor.java:397)
at org.openrewrite.internal.ListUtils.map (ListUtils.java:176)
at org.openrewrite.java.JavaVisitor.visitBlock (JavaVisitor.java:396)
at org.openrewrite.java.JavaIsoVisitor.visitBlock (JavaIsoVisitor.java:88)
at org.openrewrite.java.JavaIsoVisitor.visitBlock (JavaIsoVisitor.java:30)
at org.openrewrite.java.tree.J$Block.acceptJava (J.java:838)
at org.openrewrite.java.tree.J.accept (J.java:59)
at org.openrewrite.TreeVisitor.visit (TreeVisitor.java:245)
at org.openrewrite.TreeVisitor.visitAndCast (TreeVisitor.java:317)
at org.openrewrite.java.JavaVisitor.visitMethodDeclaration (JavaVisitor.java:879)
at org.openrewrite.java.JavaIsoVisitor.visitMethodDeclaration (JavaIsoVisitor.java:224)
at org.openrewrite.java.JavaIsoVisitor.visitMethodDeclaration (JavaIsoVisitor.java:30)
at org.openrewrite.java.tree.J$MethodDeclaration.acceptJava (J.java:3651)
at org.openrewrite.java.tree.J.accept (J.java:59)
at org.openrewrite.TreeVisitor.visit (TreeVisitor.java:245)
at org.openrewrite.TreeVisitor.visitAndCast (TreeVisitor.java:317)
at org.openrewrite.java.JavaVisitor.visitRightPadded (JavaVisitor.java:1365)
at org.openrewrite.java.JavaVisitor.lambda$visitBlock$4 (JavaVisitor.java:397)
at org.openrewrite.internal.ListUtils.map (ListUtils.java:176)
at org.openrewrite.java.JavaVisitor.visitBlock (JavaVisitor.java:396)
at org.openrewrite.java.JavaIsoVisitor.visitBlock (JavaIsoVisitor.java:88)
at org.openrewrite.java.JavaIsoVisitor.visitBlock (JavaIsoVisitor.java:30)
at org.openrewrite.java.tree.J$Block.acceptJava (J.java:838)
at org.openrewrite.java.tree.J.accept (J.java:59)
at org.openrewrite.TreeVisitor.visit (TreeVisitor.java:245)
at org.openrewrite.TreeVisitor.visitAndCast (TreeVisitor.java:317)
at org.openrewrite.java.JavaVisitor.visitClassDeclaration (JavaVisitor.java:484)
at org.openrewrite.java.JavaIsoVisitor.visitClassDeclaration (JavaIsoVisitor.java:108)
at org.openrewrite.java.JavaIsoVisitor.visitClassDeclaration (JavaIsoVisitor.java:30)
at org.openrewrite.java.tree.J$ClassDeclaration.acceptJava (J.java:1278)
at org.openrewrite.java.tree.J.accept (J.java:59)
at org.openrewrite.TreeVisitor.visit (TreeVisitor.java:245)
at org.openrewrite.TreeVisitor.visitAndCast (TreeVisitor.java:317)
at org.openrewrite.java.JavaVisitor.lambda$visitCompilationUnit$10 (JavaVisitor.java:497)
at org.openrewrite.internal.ListUtils.map (ListUtils.java:176)
at org.openrewrite.java.JavaVisitor.visitCompilationUnit (JavaVisitor.java:497)
at org.openrewrite.java.JavaIsoVisitor.visitCompilationUnit (JavaIsoVisitor.java:113)
at org.openrewrite.java.JavaIsoVisitor.visitCompilationUnit (JavaIsoVisitor.java:30)
at org.openrewrite.java.tree.J$CompilationUnit.acceptJava (J.java:1549)
at org.openrewrite.java.tree.J.accept (J.java:59)
at org.openrewrite.TreeVisitor.visit (TreeVisitor.java:245)
at org.openrewrite.TreeVisitor.visit (TreeVisitor.java:147)
at org.openrewrite.Preconditions$Check.visit (Preconditions.java:175)
at org.openrewrite.Preconditions$Check.visit (Preconditions.java:145)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$6 (RecipeRunCycle.java:182)
at io.micrometer.core.instrument.AbstractTimer.recordCallable (AbstractTimer.java:178)
at org.openrewrite.table.RecipeRunStats.recordEdit (RecipeRunStats.java:67)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$7 (RecipeRunCycle.java:178)
at org.openrewrite.scheduling.RecipeStack.reduce (RecipeStack.java:57)
at org.openrewrite.scheduling.RecipeRunCycle.lambda$editSources$8 (RecipeRunCycle.java:151)
at org.openrewrite.internal.InMemoryLargeSourceSet.lambda$edit$0 (InMemoryLargeSourceSet.java:66)
at org.openrewrite.internal.ListUtils.map (ListUtils.java:176)
at org.openrewrite.internal.InMemoryLargeSourceSet.edit (InMemoryLargeSourceSet.java:65)
at org.openrewrite.scheduling.RecipeRunCycle.editSources (RecipeRunCycle.java:150)
at org.openrewrite.RecipeScheduler.runRecipeCycles (RecipeScheduler.java:87)
at org.openrewrite.RecipeScheduler.scheduleRun (RecipeScheduler.java:41)
at org.openrewrite.Recipe.run (Recipe.java:376)
at org.openrewrite.Recipe.run (Recipe.java:372)
at org.openrewrite.Recipe.run (Recipe.java:368)
at org.openrewrite.maven.AbstractRewriteBaseRunMojo.runRecipe (AbstractRewriteBaseRunMojo.java:219)
at org.openrewrite.maven.AbstractRewriteBaseRunMojo.listResults (AbstractRewriteBaseRunMojo.java:130)
at org.openrewrite.maven.AbstractRewriteRunMojo.execute (AbstractRewriteRunMojo.java:63)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
at jdk.internal.reflect.DirectMethodHandleAccessor.invoke (DirectMethodHandleAccessor.java:103)
at java.lang.reflect.Method.invoke (Method.java:580)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:255)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:201)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:361)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:314)
Caused by: java.lang.StackOverflowError
at java.lang.StringBuilder.<init> (StringBuilder.java:106)
at org.openrewrite.java.tree.TypeUtils.toString (TypeUtils.java:651)
at org.openrewrite.java.tree.TypeUtils.toString (TypeUtils.java:642)
at org.openrewrite.java.tree.TypeUtils.toString (TypeUtils.java:663)
at org.openrewrite.java.tree.TypeUtils.toString (TypeUtils.java:642)
at org.openrewrite.java.tree.TypeUtils.toString (TypeUtils.java:663)
at org.openrewrite.java.tree.TypeUtils.toString (TypeUtils.java:642)
at org.openrewrite.java.tree.TypeUtils.toString (TypeUtils.java:663)
Are you interested in [contributing a fix to OpenRewrite]
Not right now.
The text was updated successfully, but these errors were encountered:
What version of OpenRewrite are you using?
I am using
How are you running OpenRewrite?
I am using the Maven plugin, and my project is a single module project. I did run the command
mvn -X clean rewrite:run
.See https://github.com/uhafner/codingstyle for details. The OpenRewrite configuration is visible in the pom.xml.
What is the smallest, simplest way to reproduce the problem?
What did you expect to see?
No exception.
What did you see instead?
Exception, see stacktrace below.
What is the full stack trace of any errors you encountered?
Are you interested in [contributing a fix to OpenRewrite]
Not right now.
The text was updated successfully, but these errors were encountered: