Class DefineClassUtils
- java.lang.Object
-
- org.apache.druid.java.util.common.DefineClassUtils
-
public class DefineClassUtils extends Object
This utility class provides a thin runtime abstraction to pick between - sun.misc.Unsafe.defineClass in Java 8, - and MethodHandles.Lookup.defineClass in Java 9 and above, while still providing compile-time support for both Java 8 and Java 9+. See alsoByteBufferUtils
-
-
Constructor Summary
Constructors Constructor Description DefineClassUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Class
defineClass(Class<?> targetClass, byte[] byteCode, String className)
-