Bug#895619: plexus-compiler: use --release instead of -source/-target for jdk9+ when setting defaults

Emmanuel Bourg ebourg at apache.org
Mon Jul 2 16:44:49 BST 2018


Le 02/07/2018 à 17:32, Thorsten Glaser a écrit :

> Patch code that uses those internal APIs. This is what we do here™
> as well, ever since we could require Java 8 at the customers’ sites.
> It’s been easy so far as most of the time it was just base64.

Base64 is easy, but sun.misc.Unsafe is another story. It's widely used
and its replacement (VarHandle [1]) requires Java 9+. So even if it
builds with OpenJDK 10, it still won't work with Java 8.

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



More information about the pkg-java-maintainers mailing list