Integrated: 8323605: Java source launcher should not require `--source ...` to enable preview
Christian Stein
cstein at openjdk.org
Wed Mar 13 06:48:24 UTC 2024
On Tue, 6 Feb 2024 12:01:04 GMT, Christian Stein <cstein at openjdk.org> wrote:
> Please review this PR targeting the source launcher that instead of throwing an error reading _"--enable-preview must be used with --source"_ adds the required compiler arguments on-the-fly.
>
> The add arguments are `--release` and `feature`, with `feature` being the release feature number of the current Java runtime as acquired by `Runtime.version().feature()`.
This pull request has now been integrated.
Changeset: 3b18c5dc
Author: Christian Stein <cstein at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/3b18c5dc5d5885fe5ebaabd9cd74f033a584e4ae
Stats: 26 lines in 5 files changed: 7 ins; 11 del; 8 mod
8323605: Java source launcher should not require `--source ...` to enable preview
Reviewed-by: mcimadamore, dholmes
-------------
PR: https://git.openjdk.org/jdk/pull/17731
More information about the compiler-dev
mailing list