Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 81125 invoked from network); 14 Dec 2001 12:10:25 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 14 Dec 2001 12:10:25 -0000 Received: (qmail 1827 invoked by uid 97); 14 Dec 2001 12:10:21 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 1768 invoked by uid 97); 14 Dec 2001 12:10:20 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 1743 invoked from network); 14 Dec 2001 12:10:20 -0000 X-Authentication-Warning: bodewig.bost.de: bodewig set sender to bodewig@apache.org using -f To: ant-dev@jakarta.apache.org Subject: Re: Security Manager and System.exit References: <9B3E950CB293D411ADF4009027B0A4D2029EBA25@maileu.imediation.com> From: Stefan Bodewig Date: 14 Dec 2001 13:02:44 +0100 In-Reply-To: Stephane Bailliez's message of "Fri, 14 Dec 2001 11:43:03 -0000" Message-ID: Lines: 19 User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.4 (Civil Service) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Fri, 14 Dec 2001, Stephane Bailliez wrote: >> From: Stefan Bodewig [mailto:bodewig@apache.org] >> >> 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. Stefan -- To unsubscribe, e-mail: For additional commands, e-mail: