Skip to content

KSP behaves differently on JVM for annotations with parameters of type array #3233

Closed

Description

@jaschdoc

Given the program below, KSP will return an empty array in the defaultArguments property of KSAnnotation. On KLib backends, it does not include the parameter. The latter is the correct behavior.

annotation class MyAnnotation(val arrayParam: Array<String>)

@MyAnnotation([""])
class MyClass

Activity

  1. self-assigned this
    on Sep 25, 2026
  2. added theissue type on Sep 25, 2026
  3. added
    bug
    P2
    on Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2bug

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions