Sitelet https://github.com/apache/maven/pull/12965
Skip to content

[MNG-8129] Clarify relativePath validation comment - #12965

Merged
gnodet merged 1 commit into
maven-4.0.xfrom
fix/MNG-8129-clarify-comment-4.0.x
Aug 31, 2026
Merged

gnodet merged 1 commit into
maven-4.0.xfrom
fix/MNG-8129-clarify-comment-4.0.x

Conversation

@gnodet

@gnodet gnodet commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Summary

Changes

Comment-only change in both impl and compat validators — no behavior change.

🤖 Generated with Claude Code

The banned characters are those reserved on Windows (NTFS),
which cause InvalidPathException when resolved via
java.nio.file.Path. They typically indicate the user put a
GAV coordinate instead of a filesystem path.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@gnodet gnodet added this to the 4.0.0-rc-7 milestone Aug 31, 2026

@gnodet gnodet left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

✅ Looks Good

Trivial comment-only change that correctly replaces an inaccurate claim ("illegal in filesystem paths") with a precise explanation ("reserved on Windows (NTFS)"). No behavioral change. Both validator files (compat and impl) receive identical updates, keeping the parallel implementations consistent.

The added context about InvalidPathException and the GAV coordinate misuse scenario is a helpful clarification for future maintainers.

🔀 Backport Status

  • ⏳ master — #12964 (OPEN)
  • ✅ maven-4.0.x — this PR
  • ✅ maven-3.10.x — #12966 (MERGED)
  • ℹ️ maven-3.9.x — not needed (MNG-8129 validation not present on 3.9.x)

🤖 This review was generated by ForgeBot.

@gnodet
gnodet merged commit 5cecf72 into maven-4.0.x Aug 31, 2026
24 checks passed
@gnodet
gnodet deleted the fix/MNG-8129-clarify-comment-4.0.x branch August 31, 2026 06:13
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.

1 participant