Can javac 11 compile for Java 6 / 7?

Naman <> NullPointer namannigam12 at gmail.com
Sun Mar 25 09:52:02 UTC 2018


Just to support that this is stated in the JEP-182 [1], which might need an
edit if the policy is not followed or updated with JDK 10.

JDK 9 will implement a "one plus three back" support policy meaning that 1.9
> /9, 1.8/8, 1.7/7, and 1.6/6 will be recognized in that release. That
> policy will continue in JDK 10.


[1] http://openjdk.java.net/jeps/182

        Regards
    Naman Nigam
 +91-9761212401
LinkedIn <https://www.linkedin.com/in/nigamnaman> | GitHub
<https://github.com/namannigam> | StackOverflow
<http://stackoverflow.com/users/1746118/nullpointer>

On Sun, Mar 25, 2018 at 1:02 PM, Nicolai Parlog <nipa at codefx.org> wrote:

>  Hi!
>
> 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:
>     http://keys.gnupg.net/pks/lookup?op=vindex&search=0xCA3BAD2E9CCCD509
>
> Web:
>     http://codefx.org
>         a blog about software development
>     https://www.sitepoint.com/java
>         high-quality Java/JVM content
>     http://do-foss.de
>         Free and Open Source Software for the City of Dortmund
>
> Twitter:
>     https://twitter.com/nipafx
>


More information about the jdk-dev mailing list