Am 26.01.20 um 13:00 schrieb core-libs-dev-requ...@openjdk.java.net:
Message: 1
Date: Sat, 25 Jan 2020 09:07:23 -0800
From: Mandy Chung <mandy.ch...@oracle.com>
To: Bernd Eckenfels <e...@zusammenkunft.net>
Cc: core-libs-dev Libs <core-libs-dev@openjdk.java.net>
Subject: Re: New candidate JEP: 371: Hidden Classes
Message-ID: <f7459caf-7e11-06cb-ff27-40c72c1d1...@oracle.com>
Content-Type: text/plain; charset=windows-1252; format=flowed
On 1/24/20 9:15 PM, Bernd Eckenfels wrote:
Hello,
I wonder will this (weak class) be useful for reflective method
accessors and even be able to reduce/remove the need of
jdk.internal.reflect.DelegatingClassLoaders? If so, that would be a good
example to mention in the JEP (it only mentions Proxies).
The other alternative is to change core reflection to use MethodHandle
where Peter Levart has a prototype:
https://bugs.openjdk.java.net/browse/JDK-6824466
This would help the reflective support for inline classes and
new VM/language feature such that adding support in MethodHandle
will work both both.
In that case watch out for GraalVM. Native-image does not fully support
MethodHandles.
See:
https://github.com/oracle/graal/blob/master/substratevm/LIMITATIONS.md#invokedynamic-bytecode-and-method-handles