JDK-8202387 : javac --release 11 not supported
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 11
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2018-04-27
  • Updated: 2018-05-17
  • Resolved: 2018-05-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11
11 b13Fixed
Related Reports
Blocks :  
Blocks :  
Duplicate :  
Relates :  
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