equal
deleted
inserted
replaced
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 |