Skip to content

[kotlin] Add auxClasspath language property #6677

Closed

Description

@stokpop

Summary

Wire --aux-classpath for Kotlin analysis via JvmLanguagePropertyBundle, and lay the infrastructure for kotlin-type-mapper integration.

Changes

  • KotlinLanguageModule uses JvmLanguagePropertyBundle so --aux-classpath is accepted
  • KotlinLanguageProcessor + KotlinAuxClasspathResolver: resolves classpath entries via the language property "auxClasspath"

Follow-up

  • KotlinNode DataMap keys (TYPE_NAME_KEY, RETURN_TYPE_KEY, ANNOTATION_NAMES_KEY) + accessors — API contract for the kotlin-type-mapper to populate
  • KotlinHandler refactored to XPathHandlerHolder pattern (deferred init); XPath functions registered in follow-up PRs
  • XPath functions (hasAnnotation, hasImport) and full kotlin-type-mapper integration are in separate PRs.

Activity

  1. stokpop commented on May 14, 2026

    @stokpop
    ContributorAuthor

    Note on #6312: PR #6312 (Fix #4953) is currently open (milestone 7.25.0) and deprecates getAnalysisClassLoader() on JvmLanguagePropertyBundle, replacing it with a new getClasspathConfig() -> PmdClasspathConfig / OpenClasspath pattern (see JavaLanguageProcessor for the updated usage).

    Tier 2 of KotlinAuxClasspathResolver uses getAnalysisClassLoader(). There is no file conflict between this PR and #6312, and the code will not break when #6312 merges (the deprecated method delegates internally). A TODO referencing both #4953 and #6312 is left at the call site, pointing to JavaLanguageProcessor as the migration example.

  2. changed the title [-][kotlin] Add auxclasspath support and type-mapper infrastructure[/-] [+][kotlin] Add auxclasspath language property[/+] on Jun 18, 2026
  3. changed the title [-][kotlin] Add auxclasspath language property[/-] [+][kotlin] Add auxClasspath language property[/+] on Jun 18, 2026
  4. added this to the 7.26.0 milestone on Jun 18, 2026
  5. added a commit that references this issue on Jun 18, 2026
    2c11a15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions