Skip to content

Parsing failed on Assertions.assertTrue(o instanceof AbstractList<?>); #5448

@henri-tremblay

Description

@henri-tremblay

What version of OpenRewrite are you using?

rewrite-maven-plugin:6.8.1
rewrite-testing-frameworks:3.8.0

How are you running OpenRewrite?

Running with Maven on https://github.com/easymock/easymock

      <plugin>
        <groupId>org.openrewrite.maven</groupId>
        <artifactId>rewrite-maven-plugin</artifactId>
        <version>6.8.1</version>
        <configuration>
          <activeRecipes>
            <recipe>org.openrewrite.java.testing.junit5.AssertTrueInstanceofToAssertInstanceOf</recipe>
          </activeRecipes>
        </configuration>
        <dependencies>
          <dependency>
            <groupId>org.openrewrite.recipe</groupId>
            <artifactId>rewrite-testing-frameworks</artifactId>
            <version>3.8.0</version>
          </dependency>
        </dependencies>
      </plugin>

LimitationTest.java will make it crash but the specific line is Assertions.assertTrue(o instanceof AbstractList<?>);. I would guess in the <?> at the end.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions