Skip to content

[MNG-8678] Address review: improve isFatal Javadoc and add soft-failure test - #13091

Open
gnodet wants to merge 1 commit into
apache:masterfrom
gnodet:fix/MNG-8678-followup
Open

[MNG-8678] Address review: improve isFatal Javadoc and add soft-failure test#13091
gnodet wants to merge 1 commit into
apache:masterfrom
gnodet:fix/MNG-8678-followup

Conversation

@gnodet

@gnodet gnodet commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #13055 and the review on #13067.

Two improvements to BuildPlanExecutor:

Javadoc clarification

The isFatal @return tag now explains why RuntimeException is treated as fatal on par with Error: both indicate an unexpected JVM or framework state, as opposed to checked exceptions which are ordinary plugin failures that allow the reactor to continue.

New test: soft-failure path

exceptionThrownByBuildStepIsRecordedAsBuildFailure uses IllegalStateException (a RuntimeException, fatal path). There was no test pinning the soft-failure path — a checked exception that must not halt the reactor when --fail-at-end is in effect. The new checkedExceptionThrownByBuildStepDoesNotHaltReactor test fills that gap.

…re test

Follow-up to apache#13055. The isFatal Javadoc @return tag now explains why
RuntimeException is treated as fatal on par with Error (both indicate an
unexpected JVM or framework state). A new test pins the soft-failure path
so a future change to isFatal cannot silently break --fail-at-end for
ordinary plugin failures.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant