Branch: refs/heads/main
  Home:   https://github.com/pmd/pmd
  Commit: d04ce54240fe4b727956b5c62c83dcea70f17b25
      https://github.com/pmd/pmd/commit/d04ce54240fe4b727956b5c62c83dcea70f17b25
  Author: Peter Paul Bakker <[email protected]>
  Date:   2026-07-21 (Tue, 21 Jul 2026)

  Changed paths:
    M docs/pages/release_notes.md
    M 
pmd-kotlin/src/main/java/net/sourceforge/pmd/lang/kotlin/types/internal/AnnotationFqnAnnotator.java
    M 
pmd-kotlin/src/test/java/net/sourceforge/pmd/lang/kotlin/types/internal/KotlinTypeAnnotationVisitorTest.java

  Log Message:
  -----------
  [kotlin] Fix #6891: Use KtModifiers container in AnnotationFqnAnnotator 
(#6892)

* fix(kotlin): Fix #6891 — use KtModifiers container in AnnotationFqnAnnotator

collectAnnotationNodes() used .children(KtModifier.class) but KtModifier 
(singular)
is an individual modifier keyword; annotations live under KtModifiers (plural 
container).
The chain returned empty for all declaration types, so @TypeName was never set 
on
UnescapedAnnotation/SingleAnnotation nodes.

Fix: use .children(KtModifiers.class) as the first step.
Add regression test unescapedAnnotationOnFunctionHasTypeName.

* [kotlin] Add testcase for KtSingleAnnotation TypeName

* [doc] Update release notes (#6891)

---------

Co-authored-by: Andreas Dangel <[email protected]>



To unsubscribe from these emails, change your notification settings at 
https://github.com/pmd/pmd/settings/notifications


_______________________________________________
Pmd-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmd-commits

Reply via email to