Skip to content

Handling of annotations assigned to constructor parameters of the record class #4513

@k163377

Description

@k163377

Describe your Issue

In Kotlin, annotations are given to constructor parameters of the record class when written in a natural way.

@JvmRecord
data class JacksonTest(
    @JsonProperty("propertyOne")
    val one: String,
    @JsonProperty("propertyTwo")
    val two: String
)

On the other hand, Jackson seemed to ignore such annotations.
For this reason, the following problems have been reported
FasterXML/jackson-module-kotlin#773

I am not familiar with the handling of the record class, but is it possible to handle annotations on parameters in the same way as the normal class?

Metadata

Metadata

Assignees

No one assigned

    Labels

    2.18Issues planned at 2.18 or laterRecordIssue related to JDK17 java.lang.Record supportproperty-discoveryProblem with property discovery (introspection)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions