Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 27211 invoked from network); 20 Jul 2010 07:58:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Jul 2010 07:58:17 -0000 Received: (qmail 60079 invoked by uid 500); 20 Jul 2010 07:58:16 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 59982 invoked by uid 500); 20 Jul 2010 07:58:15 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 59965 invoked by uid 99); 20 Jul 2010 07:58:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jul 2010 07:58:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jul 2010 07:58:11 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o6K7vnSF021587 for ; Tue, 20 Jul 2010 07:57:50 GMT Message-ID: <2792507.471661279612669942.JavaMail.jira@thor> Date: Tue, 20 Jul 2010 03:57:49 -0400 (EDT) From: "Tim Ellison (JIRA)" To: commits@harmony.apache.org Subject: [jira] Assigned: (HARMONY-6593) [classlib][luni]SecurityManager.checkExit(status) function fails to check for various status values In-Reply-To: <24465201.458701279564070227.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-6593?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Tim Ellison reassigned HARMONY-6593: ------------------------------------ Assignee: Tim Ellison > [classlib][luni]SecurityManager.checkExit(status) function fails to check for various status values > --------------------------------------------------------------------------------------------------- > > Key: HARMONY-6593 > URL: https://issues.apache.org/jira/browse/HARMONY-6593 > Project: Harmony > Issue Type: Bug > Components: Classlib > Affects Versions: 5.0M13 > Environment: Windows and Linux > Reporter: Mohanraj Loganathan > Assignee: Tim Ellison > Attachments: securityManager_exitV_001.diff > > > Consider the testcase below[1]. Harmony throws unknown permission > But with RI the same test passes. > As per API doc, checkExit should be able to check VM exit status. > [1] testcase: > public void test_checkExit_int1() { > SecurityManager mySecMngr = new SecurityManager(){ > public void checkPermission(Permission permission) { > if (!permission.equals(new RuntimePermission("exitVM.1") )) { > throw new SecurityException("unknown permission"); > } > } > }; > mySecMngr.checkExit(1); > try { > mySecMngr.checkExit(2); > fail("Should throw SecurityException"); > } catch (SecurityException se) { > // expected > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.