On Wed, 11 Mar 2026 20:39:55 GMT, Chen Liang <[email protected]> wrote:

> The `JavaTask` used by SourceLauncher by default passes jtreg-added flags to 
> the java launcher. This is fine for the most part except when the source 
> launcher specifies `--source` which conflicts with `--enable-preview`. We can 
> use `includeStandardOptions(false)` to prevent such passing.
> 
> The other uses of `vmOpions` are all true vm options and thus can inherit 
> options.
> 
> The same failure happens on mainline. We might port this to mainline later.

This pull request has now been integrated.

Changeset: 80c30478
Author:    Chen Liang <[email protected]>
URL:       
https://git.openjdk.org/valhalla/commit/80c30478fd8d272b233082e3e9ebb0ff2771d2d3
Stats:     1 line in 1 file changed: 1 ins; 0 del; 0 mod

8379820: [lworld] tools/javac/launcher/SourceLauncherTest.java fails with 
error: release version 21 not supported

Reviewed-by: vromero

-------------

PR: https://git.openjdk.org/valhalla/pull/2216

Reply via email to