Unresolvable class in annotation value is missing (rather than <ERROR TYPE>
) when used in Kotlin sources.
#1474
Milestone
<ERROR TYPE>
) when used in Kotlin sources.
#1474
To reproduce this, define an annotation that accepts
Class<?>[]
:(Note: in this case its a Java annotation, but it can also be written in kotlin -- it doesn't affect the results in this case):
Next, use the annotation in a Kotlin source with a missing type, e.g.
(Note: this class must be written in Kotlin to demonstrate the bug):
Finally, print the annotation values with something like this:
This results in the following output:
Note that the
MissingType
class is just missing. At the very least I would expect it to show up as an<ERROR TYPE>
.Note that this only happens when the annotation is used in Kotlin source.
If we use the annotation in a Java source we get the correct results, e.g.
Results in the expected output:
The text was updated successfully, but these errors were encountered: