Feature #13083
closed
Enable gate builds with OpenJDK 11
Added by Peter Tribble almost 2 years ago.
Updated almost 2 years ago.
Description
The Java world is moving on, and JDK8 is getting rather old.
It would be beneficial to support gate builds with a newer version in addition to 8: JDK 11, as an LTS release, would appear to be the ideal target.
Queries haven't yet turned up anyone using a version of Java older than 8, so it seems unnecessary to try and support older versions as well.
In Java 11, javah is no more. It is claimed that 'javac -h' is the replacement, but this isn't quite true, as it does not allow either the specification of the output file name nor does it merge the header declarations into a single file. The simplest approach is then to check the Java 8 generated headers into the gate, rather than create them anew every build. I have, however, verified that the actual header contents that Java 11 gives are equivalent.
With Java 8, the build should be unchanged - and wsdiff shows that the jni shared objects created are identical, as they should be.
- Status changed from New to Closed
- % Done changed from 0 to 100
git commit 51396a8ee7fb52fe0ab33bfe7b4f495ad431904a
commit 51396a8ee7fb52fe0ab33bfe7b4f495ad431904a
Author: Peter Tribble <peter.tribble@gmail.com>
Date: 2020-09-18T18:31:28.000Z
13083 Enable gate builds with OpenJDK 11
Reviewed by: Richard Lowe <richlowe@richlowe.net>
Reviewed by: Andy Fiddaman <andy@omniosce.org>
Reviewed by: Toomas Soome <tsoome@me.com>
Approved by: Joshua M. Clulow <josh@sysmgr.org>
Also available in: Atom
PDF