RFR: 8323605: Java source launcher should not require `--source ...` to enable preview [v5]

Christian Stein cstein at openjdk.org
Tue Mar 12 15:59:26 UTC 2024


> 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()`.

Christian Stein has updated the pull request incrementally with one additional commit since the last revision:

  Update to suggested sentence

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/17731/files
  - new: https://git.openjdk.org/jdk/pull/17731/files/bb8eac9a..a82e4fe3

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=17731&range=04
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=17731&range=03-04

  Stats: 3 lines in 1 file changed: 0 ins; 1 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/17731.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/17731/head:pull/17731

PR: https://git.openjdk.org/jdk/pull/17731


More information about the compiler-dev mailing list