Hidden classes + class data
forax at univ-mlv.fr
Fri Nov 22 14:57:40 UTC 2019
I've played a little with the nestmates branch, trying to see how to re-implement the reflection API based on the method handle API.
A question, correct me if i'm wrong but every hidden classes has its own bytecode array even when i call defineHiddenClassWithClassData several times with the same byte array ?
Also, is it possible to have a Lookup.defineClass variation that takes a class data as parameter but do not create a hidden class, something like
Class<?> defineClassWithClassData(byte bytes, Object classData, boolean initialize)
It would be very convenient in order to generate a something like a lambda body (not the lambda adapter/proxy) where you want it to appear in th stacktrace because it's a code produced by a user.
More information about the valhalla-dev