Class annotation values with $
in name are null
when used in Kotlin source
#1671
Milestone
$
in name are null
when used in Kotlin source
#1671
This issue was brought up in Dagger (google/dagger#4197), but looks like the underlying cause is a bug in KSP.
Say we have the following classes:
The issue is that if we use KSP to inspect the annotation values of
MyAnnotation.classes
then theSomeClass$WithDollarSign
type is returned asnull
. For example, say we have the following KSP processor:This will print the following:
Note: The above issue only happens when the annotation is used in a kotlin source. If the annotation is used in java source then things work as expected and I get:
The text was updated successfully, but these errors were encountered: