src/share/classes/sun/rmi/server/Activation.java

Print this page

        

*** 105,117 **** import sun.rmi.log.ReliableLog; import sun.rmi.registry.RegistryImpl; import sun.rmi.runtime.NewThreadAction; import sun.rmi.server.UnicastServerRef; import sun.rmi.transport.LiveRef; - import sun.security.action.GetBooleanAction; - import sun.security.action.GetIntegerAction; - import sun.security.action.GetPropertyAction; import sun.security.provider.PolicyFile; import com.sun.rmi.rmid.ExecPermission; import com.sun.rmi.rmid.ExecOptionPermission; /** --- 105,114 ----
*** 182,192 **** private static final Object initLock = new Object(); private static boolean initDone = false; // this should be a *private* method since it is privileged private static int getInt(String name, int def) { ! return AccessController.doPrivileged(new GetIntegerAction(name, def)); } private transient Activator activator; private transient Activator activatorStub; private transient ActivationSystem system; --- 179,190 ---- private static final Object initLock = new Object(); private static boolean initDone = false; // this should be a *private* method since it is privileged private static int getInt(String name, int def) { ! return AccessController.doPrivileged( ! (PrivilegedAction<Integer>) () -> Integer.getInteger(name, def)); } private transient Activator activator; private transient Activator activatorStub; private transient ActivationSystem system;
*** 2040,2056 **** log = "log"; } } debugExec = AccessController.doPrivileged( ! new GetBooleanAction("sun.rmi.server.activation.debugExec")); /** * Determine class name for activation exec policy (if any). */ String execPolicyClassName = AccessController.doPrivileged( ! new GetPropertyAction("sun.rmi.activation.execPolicy", null)); if (execPolicyClassName == null) { if (!stop) { DefaultExecPolicy.checkConfiguration(); } execPolicyClassName = "default"; --- 2038,2054 ---- log = "log"; } } debugExec = AccessController.doPrivileged( ! (PrivilegedAction<Boolean>) () -> Boolean.getBoolean("sun.rmi.server.activation.debugExec")); /** * Determine class name for activation exec policy (if any). */ String execPolicyClassName = AccessController.doPrivileged( ! (PrivilegedAction<String>) () -> System.getProperty("sun.rmi.activation.execPolicy")); if (execPolicyClassName == null) { if (!stop) { DefaultExecPolicy.checkConfiguration(); } execPolicyClassName = "default";
*** 2385,2395 **** private static int numExecs = 0; static { lineSeparator = AccessController.doPrivileged( ! new GetPropertyAction("line.separator")); lineSeparatorLength = lineSeparator.length(); } /** * Create a new PipeWriter object. All methods of PipeWriter, --- 2383,2393 ---- private static int numExecs = 0; static { lineSeparator = AccessController.doPrivileged( ! (PrivilegedAction<String>) () -> System.getProperty("line.separator")); lineSeparatorLength = lineSeparator.length(); } /** * Create a new PipeWriter object. All methods of PipeWriter,