Re: nice thing that JSH and Echidna do

Pat <[email protected]>
Newsgroups gmane.comp.java.beanshell.devel
Message-ID <[email protected]>
On Mon, Nov 10, 2003 at 05:04:44PM +0100, 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

I would guess that these apps require special launcher scripts that change the
boot classpath?

I don't think it's possible to rewrite those classes at run-time any other
way...  even with full security permissions.

That would not be too hard to do if you really wanted to...  You could even do
it statically if it weren't for the licensing issues in distibuting their 
code...

Another possibility would be to use the security manager to prevent the exit...


Pat


-------------------------------------------------------
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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.