You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Benedikt Ritter <br...@apache.org> on 2014/12/26 14:17:12 UTC

[ALL] Source option 1.4 and 1.5 are no longer supported in Java 9

Hi all,

I've just tested building [validator] with the latest JDK 9 EA build. The
build doesn't work and fails with the following message:

[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Source option 1.4 is no longer supported. Use 1.6 or later.
[ERROR] Target option 1.4 is no longer supported. Use 1.6 or later.
[INFO] 2 errors

Maybe it's finally time to start upgrading all components to Java 1.6.

Regards,
Benedikt


-- 
http://people.apache.org/~britter/
http://www.systemoutprintln.de/
http://twitter.com/BenediktRitter
http://github.com/britter

Re: [ALL] Source option 1.4 and 1.5 are no longer supported in Java 9

Posted by Stefan Bodewig <bo...@apache.org>.
> Benedikt Ritter wrote:

>> Maybe it's finally time to start upgrading all components to Java 1.6.

All compontents that don't explicitly want to defer the upgrade.  No
need to force this on all components IMHO.

On 2014-12-26, Jörg Schaible wrote:

> Just add a profile that sets the two properties to 1.6 when compiling with
> Java 9. However, all components supporting a lower level should add an
> enforcement rule to the release profile to prevent an accidental release
> with Java 9 then.

Sounds right.

Stefan

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


Re: [ALL] Source option 1.4 and 1.5 are no longer supported in Java 9

Posted by Jörg Schaible <jo...@gmx.de>.
Benedikt Ritter wrote:

> Hi all,
> 
> I've just tested building [validator] with the latest JDK 9 EA build. The
> build doesn't work and fails with the following message:
> 
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR] Source option 1.4 is no longer supported. Use 1.6 or later.
> [ERROR] Target option 1.4 is no longer supported. Use 1.6 or later.
> [INFO] 2 errors
> 
> Maybe it's finally time to start upgrading all components to Java 1.6.

Just add a profile that sets the two properties to 1.6 when compiling with 
Java 9. However, all components supporting a lower level should add an 
enforcement rule to the release profile to prevent an accidental release 
with Java 9 then.

Cheers,
Jörg


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


Re: [ALL] Source option 1.4 and 1.5 are no longer supported in Java 9

Posted by Gary Gregory <ga...@gmail.com>.
On Fri, Dec 26, 2014 at 8:17 AM, Benedikt Ritter <br...@apache.org> wrote:

> Hi all,
>
> I've just tested building [validator] with the latest JDK 9 EA build. The
> build doesn't work and fails with the following message:
>
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR :
> [INFO] -------------------------------------------------------------
> [ERROR] Source option 1.4 is no longer supported. Use 1.6 or later.
> [ERROR] Target option 1.4 is no longer supported. Use 1.6 or later.
> [INFO] 2 errors
>
> Maybe it's finally time to start upgrading all components to Java 1.6.
>

I'm fine with that.

Gary


>
> Regards,
> Benedikt
>
>
> --
> http://people.apache.org/~britter/
> http://www.systemoutprintln.de/
> http://twitter.com/BenediktRitter
> http://github.com/britter
>



-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory