mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8323605: Java source launcher should not require --source ...
to enable preview
Reviewed-by: mcimadamore, dholmes
This commit is contained in:
parent
5d4bfad12b
commit
3b18c5dc5d
5 changed files with 15 additions and 19 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue