groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cédric Champeau <cchamp...@apache.org>
Subject Re: trySetAccessible for Java 9
Date Wed, 05 Jul 2017 16:55:22 GMT
Actually I'm realizing that the `MethodHandle` API came with Java 7. So we
_can_ compile against it. So I guess an option is to have the method handle
redirect to `trySetAccessible` if the detected runtime is Java 9, and a
backport method if < 9.



2017-07-05 18:41 GMT+02:00 Russel Winder <russel@winder.org.uk>:

> On Wed, 2017-07-05 at 18:28 +0200, Cédric Champeau wrote:
> >
> […]
> > Any suggestion?
>
> How about leave Groovy 2.x as a "can only build on JDK8", and put all
> effort
> for a JDK9 build on Groovy 3.x which, as I understand it requires JDK8 as a
> runtime. This would seem to minimise hassle and maximise forward-looking
> benefit. Unless I am missing something.
>
> --
> Russel.
> ============================================================
> =================
> Dr Russel Winder     t:+44 20 7585 2200   voip:sip:
> russel.winder@ekiga.net
> 41 Buckmaster Road   m:+44 7770 465 077   xmpp:russel@winder.org.uk
> London SW11 1EN, UK  w: www.russel.org.uk skype:russel_winder

Mime
View raw message