Can javac 11 compile for Java 6 / 7?

Nicolai Parlog nipa at
Sun Mar 25 07:32:02 UTC 2018


Javac 9 supports "one plus three back" for the three flags -release,
-source, and -target, meaning "6" was a valid value for all of them.

Javac 10 did not change that and javac 11 (build 5) doesn't seem to do
that either. Will it stay that way until the release in September, i.e.
will JDK 11 allow compiling code for Java 6?

 so long ... Nicolai


PGP Key:

        a blog about software development
        high-quality Java/JVM content
        Free and Open Source Software for the City of Dortmund


More information about the jdk-dev mailing list