Re: nice thing that JSH and Echidna do
Clint Goudie <[email protected]>
| Newsgroups | gmane.comp.java.beanshell.devel |
|---|---|
| Message-ID | <[email protected]> |
You can easily do this by wrapping a security manager around your beanshell code, and it will handle anyone who calls exit() or halt() anywhere in the sandboxed code... Look at extending the SecuirtyManager class to handle exit problems... Clint On Mon, 2003-11-10 at 09:04, Jean-Marc Vanel wrote: > They are able to catch calls like : > Runtime.getRuntime().exit(i) > > They do this by modifying these classes from Sun : > ClassLoader.java System.java ThreadGroup.java > > Maybe the Sun licence doesn't allow this, but I feel that a Java shell > should be reliable to be really used in production, and this implies > never exiting caused by an external application. ------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/