Class definer for Java 9+ without using Unsafe.
Unsafe is slightly faster, but from the name we can understand that it is insecure and can be removed at any time.
SafeClassDefiner not restricted.
ClassDefiner classDefiner = ClassDefiner.createSafeClassDefiner();
classDefiner.defineClass(myBytes, classLoader);
classDefiner.defineHiddenClass(myBytes, true, classLoader);
ASM (9.2) for generating empty classes.
JUnit (5.8.2)