reflectasm
reflectasm copied to clipboard
Use MethodHandles.Lookup.defineClass instead of java.lang.ClassLoader.defineClass
Note: this PR changes the minimum Java version 9. This may or may not be wanted...
I'm a bit unsure about this change. Especially the fallback case in AccessClassLoader.defineClass
(which now always will happen if no Lookup
is provided).