src/java.base/share/classes/sun/reflect/ClassDefiner.java

Print this page
rev 12972 : 8140606: Update library code to use internal Unsafe
Reviewed-by: duke

*** 25,35 **** package sun.reflect; import java.security.AccessController; import java.security.PrivilegedAction; ! import sun.misc.Unsafe; /** Utility class which assists in calling Unsafe.defineClass() by creating a new class loader which delegates to the one needed in order for proper resolution of the given bytecodes to occur. */ --- 25,35 ---- package sun.reflect; import java.security.AccessController; import java.security.PrivilegedAction; ! import jdk.internal.misc.Unsafe; /** Utility class which assists in calling Unsafe.defineClass() by creating a new class loader which delegates to the one needed in order for proper resolution of the given bytecodes to occur. */