Skip to content

fix: Profile schema codeSegments - collapse 4.1.0/4.1.99 + 4.2.0+ into 4.1.0+ - #14075

Merged
gnodet merged 1 commit into
apache:masterfrom
gnodet:fix-profile-schema-codeSegments
Nov 19, 2026
Merged

gnodet merged 1 commit into
apache:masterfrom
gnodet:fix-profile-schema-codeSegments

Conversation

@gnodet

@gnodet gnodet commented Nov 19, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #12377 and backport #14069.

The original PR #12377 split the Profile codeSegments into:

  • 4.0.0/4.0.99: keeps getSource/setSource (correct)
  • 4.1.0/4.1.99: re-introduces getSource/setSource (wrong — these were removed from the 4.1.0 schema)
  • 4.2.0+: clean toString only

Since the 4.1.0 schema does not have getSource/setSource, the 4.1.0/4.1.99 block was incorrectly re-introducing them. This is the same fix applied to the backport (#14069): collapse into a single 4.1.0+ block with just the clean toString, removing the now-redundant 4.2.0+ block.

…redundant 4.2.0+ block

getSource/setSource were removed from the 4.1.0 schema (backport apache#14069),
so the 4.1.0/4.1.99 block re-introducing them on master is wrong.
Collapse to 4.1.0+ with the clean toString; the 4.2.0+ block is redundant.

@gnodet-bot gnodet-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. The fix is correct and surgical.

The 4.1.0/4.1.99 codeSegment was erroneously re-introducing SOURCE_POM, SOURCE_SETTINGS, source, getSource(), and setSource() for the 4.1.0–4.1.99 range — fields that were removed from the 4.1.0 schema. Collapsing it into a single 4.1.0+ block with just the clean toString() aligns master with what #14069 fixes on maven-4.0.x. The 4.0.0/4.0.99 block is untouched (correct — Maven 3 compat). No Java code changed; this is a pure schema/codegen template correction with no behaviour impact on end users.

No issues found.

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

@gnodet
gnodet merged commit fa42171 into apache:master Nov 19, 2026
22 checks passed
@github-actions github-actions Bot added this to the 4.2.0 milestone Nov 19, 2026
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