Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 30346 invoked from network); 8 Feb 2007 09:54:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Feb 2007 09:54:01 -0000 Received: (qmail 43012 invoked by uid 500); 8 Feb 2007 09:54:07 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 42990 invoked by uid 500); 8 Feb 2007 09:54:07 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 42981 invoked by uid 99); 8 Feb 2007 09:54:07 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Feb 2007 01:54:07 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [192.18.1.36] (HELO gmp-ea-fw-1.sun.com) (192.18.1.36) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Feb 2007 01:53:56 -0800 Received: from d1-emea-10.sun.com (d1-emea-10.sun.com [192.18.2.120]) by gmp-ea-fw-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id l189rUIY020524 for ; Thu, 8 Feb 2007 09:53:34 GMT Received: from conversion-daemon.d1-emea-10.sun.com by d1-emea-10.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) id <0JD500401206O200@d1-emea-10.sun.com> (original mail from Knut.Hatlen@Sun.COM) for derby-dev@db.apache.org; Thu, 08 Feb 2007 09:53:30 +0000 (GMT) Received: from localhost ([129.159.112.231]) by d1-emea-10.sun.com (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPSA id <0JD500GNZ255K1GU@d1-emea-10.sun.com> for derby-dev@db.apache.org; Thu, 08 Feb 2007 09:53:30 +0000 (GMT) Date: Thu, 08 Feb 2007 10:53:29 +0100 From: Knut Anders Hatlen Subject: Re: code coverage: problem in running junit suite lang with emma In-reply-to: <836ae9af0702071532s2c68fcdfx7a396939ffa36bce@mail.gmail.com> Sender: Knut.Hatlen@Sun.COM To: derby-dev@db.apache.org Message-id: Organization: Sun Microsystems MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT References: <836ae9af0702071532s2c68fcdfx7a396939ffa36bce@mail.gmail.com> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.92 (usg-unix-v) X-Virus-Checked: Checked by ClamAV on apache.org Ramandeep Kaur writes: > As adding line "permission java.security.AllPermission;" to > derby_tests.policy makes lang suite to run incompletely, I added line > "permission java.io.FilePermission "${user.home}${/}coverage.ec", "write";" > to derby_tests.policy instead of line "permission > java.security.AllPermission;" and ran tests as following [snip] > Time: 909.446 > > OK (424 tests) > > java.security.AccessControlException: access denied > (java.io.FilePermissionC:\Documents and Settings\raman\coverage.ec > read) [snip] > I am not sure why exception java.security.AccessControlException gets thrown > even though I have "permission java.io.FilePermission > "${user.home}${/}coverage.ec", > "write";" in derby_tests.policy file. Note that the exception message says that access was denied to *read* the file. Does it work if you specify permission "read, write" instead of only "write"? -- Knut Anders