Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement : FlatFileItemReaderBuilder : raise check exception on build #4757

Open
frigaux opened this issue Feb 3, 2025 · 0 comments
Open
Labels
status: waiting-for-triage Issues that we did not analyse yet type: feature

Comments

@frigaux
Copy link

frigaux commented Feb 3, 2025

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

@frigaux frigaux added status: waiting-for-triage Issues that we did not analyse yet type: feature labels Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-triage Issues that we did not analyse yet type: feature
Projects
None yet
Development

No branches or pull requests

1 participant