gnodet opened a new pull request, #14076: URL: https://github.com/apache/maven/pull/14076
Backport of the **safe subset** of #13996 to `maven-4.0.x`. ## What is included - **Fix:** empty quoted strings (`""` or `''`) now produce an empty argument token instead of being silently dropped - **Fix:** unclosed quote (single or double) throws `IllegalArgumentException` with a clear message, caught in `main()` and reported as a configuration error — Maven exits cleanly instead of launching with wrong options - **Fix:** whitespace delimiter generalised from space-only to `Character.isWhitespace()` - **Tests:** `JvmConfigParserTest` added to cover the above, adapted for 4.0.x semantics ## What is NOT included (breaking change — master / 4.2.0 only) The backslash semantics change from #13996 is intentionally excluded: in this branch **unquoted backslashes continue to act as escape characters** (e.g. `hello\ world` → single token `hello world`). Maven 4.2.0 will change this — only `\"` and `\\` inside double-quoted strings will be recognised as escapes; all other backslashes will be literal. A **runtime `WARNING`** is now emitted to stderr whenever an unquoted backslash escape is detected in `.mvn/jvm.config`, advising users to migrate to quoted arguments before upgrading to 4.2.0. -- 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]
