Skip to content

Issues while migrating a project from Kapt to ksp when using Generics Entity for Room DB #2700

@dennymat

Description

@dennymat

Hi there,

I am facing an issue when migrating a kapt Room DB project to ksp.

Project uses Generics for Entity. Compilation fails as KSP does not recognize generic type correctly.

Here is the link to sample github project.

Branches:

main : This uses KAPT processor. No issues compiling

dennym/migrate-to-ksp: This attempts a migration to KSP processor. Compilation fails for using generic types. This can be seen in the compiled DAO impl file.

Library versions:

kotlin = "2.2.21"
ksp = "2.2.21-2.0.4"
coreKtx = "1.17.0"
room = "2.8.3"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions