Skip to content

Enhancement : FlatFileItemReaderBuilder : raise check exception on build #4757

@frigaux

Description

@frigaux

Given concrete use case (X as record class)

FlatFileItemReaderBuilder<X>()
...
.targetType(X::class.java)
.fieldSetMapper(myFieldSetMapper)
.build()

Expected Behavior
When both fieldSetMapper and targetType are defined, a "BuildCheckException" should be raised in build method with "you cannot define both FieldSetMapper and targetType"

Current Behavior
FieldSetMapper is ignored and result in misunderstanding at runtime

Best regard

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions