I don't think Java 9's capabilities are relevant for the project target. We 
compile for 1.x with the help of %JAVA_1_x_HOME% or toolchains (via -Pjava1.x 
profile), but  not with -target parameter. It's easier this way as you don't 
have to worry about the bootclasspath of the compiler. This is true for 1.6 
projects compiled with 1.8 maven-Java today.

So while it is good to review prerequisite minimum versions regularly Java 9 
seems not a immediate motivation.

Gruss
Bernd
--
http://bernd.eckenfels.net
________________________________
From: Benedikt Ritter <brit...@apache.org>
Sent: Tuesday, June 6, 2017 1:57:22 PM
To: Commons Developers List
Subject: Re: Compiler targets and Java 9


> Am 05.06.2017 um 16:41 schrieb Jochen Wiedmann <jochen.wiedm...@gmail.com>:
>
> Hi,
>
> thanks to Rob Rompkins, and his recent work on Fileupload, it came to
> my attention that Java 9 will no longer support JVM 1.5, and lower, as
> a compiler target. [1]
>
> This means, that we will be preventing our developers from using Java
> 9, if a component is still below 1.6. (And, I'd expect that to be the
> case for quite some projects.)
>
> Now, leaving the general discussions regarding Java 9, and (in
> particular) Jigsaw, aside, I think that is something that we ought to
> consider.
>
> OTOH, it seems reasonable to expect that Java 9 adoption will be slow,
> given that it isn't upwards compatible.
>
> So, as a  compromise, I propose that we adopt the following policy:
>
> All commons proper components are expected within one year from now on
> to bump their compiler target to 1.6, or beyond, and have a release
> published with that target. That way, we know, that it works fine with
> the Java 9 compiler.

+1

Benedikt

>
> Jochen
>
>
>
>
> 1: http://openjdk.java.net/jeps/182
>
> --
> The next time you hear: "Don't reinvent the wheel!"
>
> http://www.keystonedevelopment.co.uk/wp-content/uploads/2014/10/evolution-of-the-wheel-300x85.jpg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to