test/lib/jdk/test/lib/process/ProcessTools.java
changeset 58144 d003b3ef8b60
parent 57590 144585063bc8
child 58679 9c3209ff7550
equal deleted inserted replaced
58143:b35771556cd0 58144:d003b3ef8b60
   493     private static Process privilegedStart(ProcessBuilder pb) throws IOException {
   493     private static Process privilegedStart(ProcessBuilder pb) throws IOException {
   494         try {
   494         try {
   495             return AccessController.doPrivileged(
   495             return AccessController.doPrivileged(
   496                 (PrivilegedExceptionAction<Process>) () -> pb.start());
   496                 (PrivilegedExceptionAction<Process>) () -> pb.start());
   497         } catch (PrivilegedActionException e) {
   497         } catch (PrivilegedActionException e) {
   498             @SuppressWarnings("unchecked")
       
   499             IOException t = (IOException) e.getException();
   498             IOException t = (IOException) e.getException();
   500             throw t;
   499             throw t;
   501         }
   500         }
   502     }
   501     }
   503 
   502