Details
-
Bug
-
Resolution: Fixed
-
P2
-
11
-
b13
-
Verified
Description
javac --release 11 is not (yet) supported.
This prevents using --release in conjunction with --enable-preview, which indirectly blocks the source-code launcher work.
$ ./build/linux-x86_64-normal-server-release/images/jdk/bin/javac --enable-preview -source 11 play/HelloWorld.java
$ ./build/linux-x86_64-normal-server-release/images/jdk/bin/javac --enable-preview --release 11 play/HelloWorld.java
error: release version 11 not supported
Usage: javac <options> <source files>
use --help for a list of possible options
This prevents using --release in conjunction with --enable-preview, which indirectly blocks the source-code launcher work.
$ ./build/linux-x86_64-normal-server-release/images/jdk/bin/javac --enable-preview -source 11 play/HelloWorld.java
$ ./build/linux-x86_64-normal-server-release/images/jdk/bin/javac --enable-preview --release 11 play/HelloWorld.java
error: release version 11 not supported
Usage: javac <options> <source files>
use --help for a list of possible options
Attachments
Issue Links
- blocks
-
JDK-8201274 Launch Single-File Source-Code Programs
-
- Resolved
-
-
JDK-8199196 Add javadoc support for preview features
-
- Closed
-
- duplicates
-
JDK-8193784 Support javac --release 11
-
- Resolved
-
- relates to
-
JDK-8199194 Add javac support for preview features
-
- Closed
-