Concrete use case (X as record class)
FlatFileItemReaderBuilder<X>()
...
.targetType(X::class.java)
.fieldSetMapper(myFieldSetMapper)
.build()
Enhancement
With targetType provided, FieldSetMapper is ignored ! Check are missing in build method of FlatFileItemReaderBuilder. A runtime BuildCheckException should be raised with "you cannot define both FieldSetMapper and targetType"
Best regard
Comment From: bclozel
This is the wrong issue tracker, please create this issue in Spring Batch.
Comment From: frigaux
This is the wrong issue tracker, please create this issue in Spring Batch.
my apologies, thank you