google / ksp

Kotlin Symbol Processing API

Home Page:https://github.com/google/ksp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[KSP2] Class values in type annotations get resolved to error type

kuanyingchou opened this issue · comments

This is similar to #1910. Class value is resolved to error type when the annotation is used on types and the origin is Java in KSP2, while it works in KSP1.

Repro: kuanyingchou@5580326

Issue is same as fix for this code:

This time however we can't fix it in KSP since it was resolved in AA already, we will need to fix the corresponding AA code for this https://github.com/JetBrains/kotlin/blob/71633b8e5ba49722170c9e06be87c058d11c985c/analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/evaluate/FirAnnotationValueConverter.kt#L192