Skip to content

Fixes #13135: address review on reactor summary (UNKNOWN group, local StringBuilder) [maven-4.0.x] - #13181

Merged
gnodet merged 1 commit into
apache:maven-4.0.xfrom
gnodet:port/reactor-summary-review-40x
Sep 18, 2026
Merged

gnodet merged 1 commit into
apache:maven-4.0.xfrom
gnodet:port/reactor-summary-review-40x

Conversation

@gnodet

@gnodet gnodet commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Forward-port of review findings from #13173 to maven-4.0.x.

Applied to both compat/maven-embedder and impl/maven-cli:

  • Local StringBuilder: move the StringBuilder out of the ReactorSummaryRequest record and allocate it locally inside logReactorSummaryGroup. The record is a pure data-holder; carrying mutable state in it is a latent correctness trap.
  • UNKNOWN group=2: assign group = 2 to the else branch so any future BuildSummary subclass is rendered last at error level rather than silently grouped with SKIPPED modules.

… local StringBuilder)

Port review findings from apache#13173 to maven-4.0.x:
- Move StringBuilder out of ReactorSummaryRequest record and allocate
  locally in logReactorSummaryGroup, eliminating mutable state from
  the data-holder.
- Assign group=2 to the UNKNOWN BuildSummary branch so any future
  BuildSummary subclass is logged at error level last, not silently
  grouped with SKIPPED modules.

@gnodet-bot gnodet-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both findings from the #13173 review cleanly ported to maven-4.0.x:

  • StringBuilder moved to local variableReactorSummaryRequest is now a pure immutable data-holder. logReactorSummaryGroup allocates its own StringBuilder per call, eliminating the latent mutable-state risk.
  • UNKNOWN branch → group = 2 — any future BuildSummary subclass will surface at error level last rather than silently blending with SKIPPED modules.

Both compat/maven-embedder and impl/maven-cli are in sync. No gaps.

Metadata: category bug, suggested milestone 4.0.0-rc-7.

This review was generated by an AI agent, Hermès on behalf of @gnodet.

@gnodet gnodet added this to the 4.0.0-rc-7 milestone Sep 18, 2026
@gnodet
gnodet merged commit f2510ab into apache:maven-4.0.x Sep 18, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants