spring-projects / spring-projects/spring-batch

Omitting the name from the FlatFileItemReaderBuilder results in an exception. [BATCH-2623]

Open Beginner friendly
#981 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

in: documentation status: waiting-for-triage type: bug
Dominant language
Java
Stars
3k
Forks
2.5k
Avg merge
6d 53m
Merged PRs (30d)
3

Description

Marten Deinum opened BATCH-2623 and commented

During conversion of a FlatFileItemReader to the usage of the FlatFileItemReaderBuilder I ran into the issue that I now suddenly must provide a name.

The FlatFileItemReader by default sets the name to the short classname and I would expect the builder to honor this, however instead the builder itself is throwing an exception. I would expect that I don't have the explicitly name the constructed reader just as with the plain configuration.


Affects: 4.0.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by comparing the FlatFileItemReaderBuilder entry point with FlatFileItemReader's default-name behavior, then locate the builder's existing tests. Verify the behavior when no name is supplied and add a regression test showing that the builder matches the plain reader; done means that usage no longer throws an exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.