[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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

On Mon, 2 Jul 2018, Emmanuel Bourg wrote:

> revert the use of the --release option in Ant/Maven. That would mean the
> packages built with OpenJDK 10/11 are unlikely to run with OpenJDK 8
> (the binary incompatibility in the ByteBuffer class affects quite a lot
> of code).

Ouch, that would hurt. (Especially considering that 8 is still
a candidate for default-jdk in buster.)

> Someone has a better idea?

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.

tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/
Tel: +49 228 54881-393 • Fax: +49 228 54881-235
HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg

Reply to: