Skip to content

Wrong implementation of noRetry(...) and noSkip(...) in FaultTolerantStepBuilder #1199

Open
@spring-projects-issues

Description

@spring-projects-issues

Albert Strasser opened BATCH-2403 and commented

In org.springframework.batch.core.step.builder.FaultTolerantStepBuilder.java

This implementation:

public FaultTolerantStepBuilder<I, O> noRetry(Class<? extends Throwable> type) {
    retryableExceptionClasses.put(type, false);
    return this;
}

should be changed to:

public FaultTolerantStepBuilder<I, O> noRetry(Class<? extends Throwable> type) {
    nonRetryableExceptionClasses.add(type);
    return this;
}

A similar problem concerns the noSkip() method in the same class.


Affects: 3.0.3, 3.0.4

3 votes, 8 watchers

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions