26272829303132
*/ public class NoExitSecurityManager extends SecurityManager { @Override public void checkExit(int status) { throw new ExitException(status); }
34353637383940
* Override SecurityManager#checkExit. * This throws an ExitException(status) exception. * @param status the exit status */ public void checkExit(int status) { throw new ExitException(status); }
191192193194195196197198
public void checkExit(int status) { java.security.Permission perm = new java.lang.RuntimePermission("exitVM", null); try { checkPermission(perm); } catch (SecurityException e) { throw new ExitException(e.getMessage(), status); } }
67686970717273
* @author <a href="mailto:sbailliez@apache.org">Stephane Bailliez</a> */ public class NoExitSecurityManager extends SecurityManager { public void checkExit(int status) { throw new ExitException(status); }
200201202203204205206207
public void checkExit(int status) { java.security.Permission perm = new java.lang.RuntimePermission("exitVM",null); try { checkPermission(perm); } catch (SecurityException e) { throw new ExitException(e.getMessage(), status); } }
66676869707172