codeql
codeql copied to clipboard
Kotlin: annotation properties should be java.lang.Class not KClass
As documented at https://kotlinlang.org/docs/annotations.html#constructors, annotation properties of type KClass get rewritten when targeting the JVM.
That probably is an issue; I'll take another pass at this once I'm done with Java extractors
I've updated this to fix expression types in the annotation class' constructor and to handle arrays of classes. However I haven't addressed the expressions at annotation use site because we currently don't handle annotation uses at all (i.e., we never populate the annotValue table). We'll have to remember to fix this when we get around to that.
I've updated this to fix expression types in the annotation class' constructor and to handle arrays of classes. However I haven't addressed the expressions at annotation use site because we currently don't handle annotation uses at all (i.e., we never populate the
annotValuetable). We'll have to remember to fix this when we get around to that.
To remember this, I added this case to the issue tracking annotation extraction.