javac --release 11 not support by jdk 12
joe.darcy at oracle.com
Fri Jul 13 19:05:35 UTC 2018
On 7/13/2018 11:31 AM, Remi Forax wrote:
> There is a weird bug with javac of jdk 12.
> /usr/jdk/jdk-12/bin/javac --release 11
> error: release version 11 not supported
> Usage: javac <options> <source files>
> use --help for a list of possible options
> while javac --release 10 or javac --release 12 works ?
That is an expected but temporary situation given the way --release is
implemented at present. Once JDK 11 ships, the exact API changes be be
encoding so that --release will pick them up.
More information about the core-libs-dev