Proposal: Allow illegal reflective access by default in JDK 9

Jochen Theodorou blackdrag at gmx.org
Fri May 19 20:33:56 UTC 2017


On 19.05.2017 15:38, Stephen Felts wrote:
[...]
> Here are a few public ones.
>
> org.python.core.PyJavaClass - Jython
>
> com.sun.xml.bind.v2.runtime.reflect.opt.Injector – standalone jaxb
>
> com.sun.xml.ws.model.Injector – standalone jaxws
>
> net.sf.cglib.core.ReflectUtils$ - cglib
>
>
>
> Summarizing the use cases:
>
> 1. The code calls setAccessible and correctly catches and ignores the exception for those that fail.  It would be a big change to make this call setAccessible lazily.
>
> 2. The code continues to use the JDK8 approach and if that fails it falls back to an approach that works on JDK9 and/or other non-Hotspot platforms.  In some cases, this code has been around for a decade or more (e.g., to handle platforms without Unsafe).

with the same summary you can include Groovy here.

bye Jochen





More information about the jigsaw-dev mailing list