Skip to content

Conversation

timtebeek
Copy link
Member

@timtebeek
Copy link
Member Author

My potentially lying assistant tells me:

The test is using spock-core on the classpath. The issue is that when Spock is on the classpath, the Groovy compiler applies Spock's AST transformations automatically. This is a fundamental limitation - we can't parse Spock tests exactly as written when Spock is on the classpath because the transformations happen at compile time.

@timtebeek timtebeek added bug Something isn't working groovy parser labels Sep 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working groovy parser
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

java.lang.ArrayIndexOutOfBoundsException in org.openrewrite.groovy.GroovyParserVisitor.determineParenthesisLevel
1 participant