Skip to content

Commit

Permalink
KSP: Use the visitor's context class classloader to get the annotatio…
Browse files Browse the repository at this point in the history
…n class (#11408)
  • Loading branch information
dstepanov authored Dec 4, 2024
1 parent a7ec697 commit 3622f8a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ internal class KotlinAnnotationMetadataBuilder(
val annotationMirror = getAnnotationMirror(value.annotationName).orElse(null)
if (annotationMirror == null) {
return ClassUtils.forName(value.annotationName, null)
.or { ClassUtils.forName(value.annotationName, visitorContext::class.java.classLoader) }
.map { it -> it.annotations.any { it.annotationClass.java == Repeatable::class.java } }
.orElse(false)
}
Expand Down

0 comments on commit 3622f8a

Please sign in to comment.