8323605: Java source launcher should not require --source ... to enable preview

Reviewed-by: mcimadamore, dholmes
This commit is contained in:
Christian Stein 2024-03-13 06:44:04 +00:00
parent 5d4bfad12b
commit 3b18c5dc5d
5 changed files with 15 additions and 19 deletions

View file

@ -279,6 +279,11 @@ the compilation.
This sets both the source version accepted by compiler and the system
API that may be used by the code in the source file.
.IP \[bu] 2
If \f[V]--enable-preview\f[R] is specified, the \f[V]--source N\f[R]
arguments can be omitted.
If the Java runtime version is \f[V]N\f[R], then \f[V]--release N\f[R]
is implied when compiling source files.
.IP \[bu] 2
If a \f[V]module-info.java\f[R] file exists in the
\f[V]<source-root>\f[R] directory, its module declaration is used to
define a named module that will contain all the classes compiled from