I’m trying to get the fully qualified name of an a...
# ksp
j
I’m trying to get the fully qualified name of an annotation that isn’t on the classpath. Unfortunately KSAnnotation only has
shortName
. It looks like the FQN is there in the descriptor, but I don’t know how to access it. Anyone have any idea? Thanks in advance
y
Not sure if you can access a class if it is not in the classpath. What is your user case?
j
I don’t need access to the class itself, just the name of the annotation
The use case is we store annotation metadata which requires the annotation name
As you can see here the qualified name is there
j
if the FQN is there in the descriptor, can you try to get the
annotationType
and then resolve it?
j
yeah but it produces an error type