Re: Avoiding sun.misc.Unsafe and embracing modules in Java libraries: missing links

2018-04-11 Thread Alan Bateman
On 10/04/2018 12:15, Rafael Winterhalter wrote: Thanks for the reference. As for the proxy API, I think that this should be reworked anyways as the lookup on each call would be rather expensive. In the mean-time, I think you should be able to make progress with findSpecial for the common case

Re: Avoiding sun.misc.Unsafe and embracing modules in Java libraries: missing links

2018-04-11 Thread Rafael Winterhalter
I do not think that this is possible. If the module containing the interface does not open a package, I cannot change the privileges of the main module such that I can resolve a method handle for invoking the special invocation. I just tried this out too and I did not find a way, could you suggest