You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by Andy Seaborne <an...@apache.org> on 2018/05/09 16:51:00 UTC

Java10

An upgrade to Ubuntu 18.04 forces java to openjdk 11 (the LTS, and 10.04 
is an LTS as well).

Except it's not really Java 11! , which isn't due out until September, 
it's java 10.0.1.

Surefire needs updating to 2.21.0 otherwise there is an NPE.

So, I've update the dependency in the top POM and there is a Jenkins job 
to build (java8 classfile) with a JDK10 (ASF Jenkins is a bit iffy at he 
moment - the jobfailures

One less mystery.

The javadoc production is more sensitive to correct HTML which impacts 
jena-iri (errors) and others (many warnings).

     Andy




Re: Java10

Posted by Andy Seaborne <an...@apache.org>.
To add to the fun, it isn't safe to build with Java9+ targeting Java8 
class output and then run on Java8.

The build will still use the Java9 runtime and there are changes in 
ByteBuffer operations return a ByteBuffer, not a Buffer.  That changes 
the method signature and is incompatible with Java8 runtime.

It's not a local thing. Ubuntu 18.04 ships with a Tomcat8 compiled with 
Java9 and that does not start if run with Java8.

Changes pushed to master and the errors are gone (for me) and it at 
least builds with JDK10 (except elephas) messily.  Hopefully now ASF 
Jenkins jobs can be used.

     Andy

On 09/05/18 17:51, Andy Seaborne wrote:
> An upgrade to Ubuntu 18.04 forces java to openjdk 11 (the LTS, and 10.04 
> is an LTS as well).
> 
> Except it's not really Java 11! , which isn't due out until September, 
> it's java 10.0.1.
> 
> Surefire needs updating to 2.21.0 otherwise there is an NPE.
> 
> So, I've update the dependency in the top POM and there is a Jenkins job 
> to build (java8 classfile) with a JDK10 (ASF Jenkins is a bit iffy at he 
> moment - the jobfailures
> 
> One less mystery.
> 
> The javadoc production is more sensitive to correct HTML which impacts 
> jena-iri (errors) and others (many warnings).
> 
>      Andy
> 
> 
>