Skip to content

Add AnnotationIntrospector.findRenameByField() to support Kotlin's "is-getter" naming convention #2527

@cowtowncoder

Description

@cowtowncoder

(note: follow up for FasterXML/jackson-module-kotlin#80)

So, Kotlin generates its property accessors, fields similar to (but not identical) Bean conventions:

https://kotlinlang.org/docs/reference/java-to-kotlin-interop.html

and as a result Jackson's default introspection has some trouble, in particular for "is getters".
While there is now a patch for Kotlin, it might make sense to add a MapperFeature to enable it at lower level -- both for being bit more optimal, and to avoid possible regression when databind introspection changes in future (for 3.0 in particular).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions