Skip to content

MapStruct plugin does not support kotlin's data classes annotated with @JvmRecord #231

@maratik123

Description

@maratik123

If you have such data class:

@JvmRecord
data class Service(
    val serviceId: Long,
}

and such java record:

record Service2(
  long serviceId
) {}

and use them in mapping:

@Mapper
interface ServiceMapper {
  Service2 fromService(Service service);
}

Then plugin will false warn about absent target mapping, but MapStruct itself works well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions