src/java.corba/share/classes/sun/corba/Bridge.java

Print this page

        

*** 34,44 **** import java.security.AccessController; import java.security.Permission; import java.security.PrivilegedAction; ! import sun.misc.Unsafe ; import sun.reflect.ReflectionFactory ; /** This class provides the methods for fundamental JVM operations * needed in the ORB that are not part of the public Java API. This includes: * <ul> --- 34,44 ---- import java.security.AccessController; import java.security.Permission; import java.security.PrivilegedAction; ! import jdk.internal.misc.Unsafe ; import sun.reflect.ReflectionFactory ; /** This class provides the methods for fundamental JVM operations * needed in the ORB that are not part of the public Java API. This includes: * <ul>
*** 118,128 **** public Object run() { Field fld = null ; try { ! Class unsafeClass = sun.misc.Unsafe.class ; fld = unsafeClass.getDeclaredField( "theUnsafe" ) ; fld.setAccessible( true ) ; return fld ; } catch (NoSuchFieldException exc) { Error err = new Error( "Could not access Unsafe" ) ; --- 118,128 ---- public Object run() { Field fld = null ; try { ! Class unsafeClass = jdk.internal.misc.Unsafe.class ; fld = unsafeClass.getDeclaredField( "theUnsafe" ) ; fld.setAccessible( true ) ; return fld ; } catch (NoSuchFieldException exc) { Error err = new Error( "Could not access Unsafe" ) ;