gnodet commented on PR #3392:
URL: https://github.com/apache/maven-surefire/pull/3392#issuecomment-7394429296
_Claude Code on behalf of Guillaume Nodet_
## Critical Issue #1: Backslash Escaping Inconsistency
**Location:** `AbstractSurefireMojo.java` line 1728 vs
`ModularClasspathForkConfiguration.java` line 467
**Problem:**
- Additional modules escape backslashes:
`additionalTestDir.getPath().replace("\\", "\\\\")`
- Primary module does NOT escape backslashes in its path
**Impact:** On Windows, additional modules will have doubled backslashes in
the args file (e.g., `C:\\test\\classes`), while the primary module has single
backslashes (e.g., `C:\test\classes`). This inconsistency could cause path
interpretation issues.
**Recommendation:** Choose one approach and apply consistently:
1. Remove escaping from additional modules to match existing behavior, OR
2. Add escaping to the primary module code path in
`ModularClasspathForkConfiguration.createArgsFile()`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]