src/share/classes/sun/rmi/log/ReliableLog.java

Print this page

        

*** 28,39 **** import java.io.*; import java.lang.reflect.Constructor; import java.rmi.server.RMIClassLoader; import java.security.AccessController; import java.security.PrivilegedAction; - import sun.security.action.GetBooleanAction; - import sun.security.action.GetPropertyAction; /** * This class is a simple implementation of a reliable Log. The * client of a ReliableLog must provide a set of callbacks (via a * LogHandler) that enables a ReliableLog to read and write --- 28,37 ----
*** 139,149 **** boolean pad) throws IOException { super(); this.Debug = AccessController.doPrivileged( ! new GetBooleanAction("sun.rmi.log.debug")).booleanValue(); dir = new File(dirPath); if (!(dir.exists() && dir.isDirectory())) { // create directory if (!dir.mkdir()) { throw new IOException("could not create directory for log: " + --- 137,147 ---- boolean pad) throws IOException { super(); this.Debug = AccessController.doPrivileged( ! (PrivilegedAction<Boolean>) () -> Boolean.getBoolean("sun.rmi.log.debug")); dir = new File(dirPath); if (!(dir.exists() && dir.isDirectory())) { // create directory if (!dir.mkdir()) { throw new IOException("could not create directory for log: " +
*** 332,342 **** **/ private static Constructor<? extends LogFile> getLogClassConstructor() { String logClassName = AccessController.doPrivileged( ! new GetPropertyAction("sun.rmi.log.class")); if (logClassName != null) { try { ClassLoader loader = AccessController.doPrivileged( new PrivilegedAction<ClassLoader>() { --- 330,340 ---- **/ private static Constructor<? extends LogFile> getLogClassConstructor() { String logClassName = AccessController.doPrivileged( ! (PrivilegedAction<String>) () -> System.getProperty("sun.rmi.log.class")); if (logClassName != null) { try { ClassLoader loader = AccessController.doPrivileged( new PrivilegedAction<ClassLoader>() {