@Override
    public void checkExit(int status)
    {
        Class[] stack = getClassContext();
        if (stack.length > 3 && stack[3].getClassLoader() instanceof PayloadClassLoader)
        {
            throw new SecurityException("JQM payloads cannot call System.exit() - this would stop JQM itself!");
        }
    }
@ Override public void checkExit ( int status ) { Class [ ] stack = getClassContext ( ) ; if ( stack . length > 3 && stack [ 3 ] . getClassLoader ( ) instanceof PayloadClassLoader ) { throw new SecurityException ( "JQM payloads cannot call System.exit() - this would stop JQM itself!" ) ; } }
Ensures payloads are not allowed to call <code>System.exit()</code>