ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Security Manager and System.exit
Date Fri, 14 Dec 2001 12:02:44 GMT
On Fri, 14 Dec 2001, Stephane Bailliez <>

>> From: Stefan Bodewig []
>> We may not want to blindly replace an existing SecurityManager.  I
>> believe NetBeans installs its own and it wouldn't be nice to
>> disable it for example.
> There is not much choice.

True, you cannot replace a SecurityManager at all, at least in JDK 1.1
System.setSecurityManager will throw an exception, if there already is
one.  Maybe this is the JDK 1.1 issue?

For later JDKs, the existing SecurityManager will be asked for
permission before you can replace it, and may decide to say no.


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message