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

Parsing error: UnsupportOpEx in visitUserType #420

Open
traceyyoshima opened this issue Nov 16, 2023 · 1 comment
Open

Parsing error: UnsupportOpEx in visitUserType #420

traceyyoshima opened this issue Nov 16, 2023 · 1 comment

Comments

@traceyyoshima
Copy link
Contributor

TODO: reproduce the error

java.lang.UnsupportedOperationException: java type is not a Parameterized
  org.openrewrite.kotlin.internal.KotlinTreeParserVisitor.visitUserType(KotlinTreeParserVisitor.java:3096)
  org.openrewrite.kotlin.internal.KotlinTreeParserVisitor.visitUserType(KotlinTreeParserVisitor.java:72)
  org.jetbrains.kotlin.psi.KtUserType.accept(KtUserType.java:42)
  org.openrewrite.kotlin.internal.KotlinTreeParserVisitor.visitTypeReference(KotlinTreeParserVisitor.java:3016)
  org.openrewrite.kotlin.internal.KotlinTreeParserVisitor.visitTypeReference(KotlinTreeParserVisitor.java:72)
  org.jetbrains.kotlin.psi.KtTypeReference.accept(KtTypeReference.kt:38)
  org.openrewrite.kotlin.internal.KotlinTreeParserVisitor.visitProperty(KotlinTreeParserVisitor.java:2818)
  org.openrewrite.kotlin.internal.KotlinTreeParserVisitor.visitProperty(KotlinTreeParserVisitor.java:72)
  ...
@traceyyoshima traceyyoshima changed the title Parsing error: UnsupportOpEx in visitUserType Parsing error: UnsupportOpEx in visitUserType (Priority low: 1 occurrence) Nov 16, 2023
@timtebeek timtebeek moved this to Backlog in OpenRewrite Nov 20, 2023
@knutwannheden
Copy link
Contributor

@traceyyoshima I suspect this one is "fixed" by #459. Of course there will still be JavaType.Unknown objects in the type attribution which we haven't resolved, but at least the parser can continue parsing.

@traceyyoshima traceyyoshima changed the title Parsing error: UnsupportOpEx in visitUserType (Priority low: 1 occurrence) Parsing error: UnsupportOpEx in visitUserType Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

3 participants