Skip to content

Support for Kotlin dataclass (with no default constructor) #31

@AndreasSM

Description

@AndreasSM
data class Example(var foo: String, val bar: Int)
val jsonNode = JsonGenerator.generate(Example("lalala", 2))
val pojo = PojoMapper.map(JsonObject.parse(json.toJson()), Example::class.java)

This will break as the compiler does not create any default constructor for Example

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions