-
Notifications
You must be signed in to change notification settings - Fork 478
Open
Labels
Description
What version of OpenRewrite are you using?
Current main = e1f2efd
What is the smallest, simplest way to reproduce the problem?
@Test
void canonical() {
rewriteRun(
groovy(
"""
import groovy.transform.Canonical
@Canonical
class Person {
String name
int age
}
"""
)
);
}added to rewrite-groovy/src/test/java/org/openrewrite/groovy/tree/AnnotationTest.java
fails with:
Caused by: java.lang.IllegalStateException: Unexpected class type:
at org.openrewrite.groovy.GroovyParserVisitor$RewriteGroovyClassVisitor.visitClass(GroovyParserVisitor.java:257)
at org.openrewrite.groovy.GroovyParserVisitor.convertTopLevelStatement(GroovyParserVisitor.java:2418)
at org.openrewrite.groovy.GroovyParserVisitor.visit(GroovyParserVisitor.java:195)
... 16 more
OSS repro
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
No status