gnodet commented on PR #3448: URL: https://github.com/apache/maven-surefire/pull/3448#issuecomment-7394180571
### Testing & Migration Path **Testing approach:** Since `isMaven4()` is private and only affects the default value of `forkJvm`, the behavior will be validated through: - ✅ Existing Maven 3 integration tests (should continue to work with `forkJvm=false`) - ✅ Maven 4 integration tests (should now work with `forkJvm=true`, avoiding the NoSuchMethodException) The `setForkJvm()` method (line 332) allows tests to override the default if needed. **Migration path:** The PR description correctly notes this is a temporary workaround until migration to `maven-executor` (apache/maven-verifier#186). The workaround is: - ✅ Well-scoped (minimal changes) - ✅ Clearly documented as temporary - ✅ Non-invasive (doesn't change existing behavior for Maven 3) **Security note:** No security concerns - the code only reads directory listings and system properties, with no command execution or external input processing. _Claude Code on behalf of Guillaume Nodet_ -- 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]
