Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 28785 invoked from network); 19 Aug 2009 03:04:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Aug 2009 03:04:18 -0000 Received: (qmail 83499 invoked by uid 500); 19 Aug 2009 03:04:37 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 83448 invoked by uid 500); 19 Aug 2009 03:04:37 -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 83347 invoked by uid 99); 19 Aug 2009 03:04:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Aug 2009 03:04:37 +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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Aug 2009 03:03:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D576B234C044 for ; Tue, 18 Aug 2009 20:03:14 -0700 (PDT) Message-ID: <1016293798.1250650994860.JavaMail.jira@brutus> Date: Tue, 18 Aug 2009 20:03:14 -0700 (PDT) From: "Jim Yu (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-6233) [java6][classlib][security] Fix incorrect behavior of implies method of BasicPermission In-Reply-To: <815751153.1245056347849.JavaMail.jira@brutus> 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-6233?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12744851#action_12744851 ] Jim Yu commented on HARMONY-6233: --------------------------------- Verified at r805650. Thanks, Mark. > [java6][classlib][security] Fix incorrect behavior of implies method of BasicPermission > --------------------------------------------------------------------------------------- > > Key: HARMONY-6233 > URL: https://issues.apache.org/jira/browse/HARMONY-6233 > Project: Harmony > Issue Type: Bug > Components: Classlib > Affects Versions: 5.0M10 > Reporter: Jim Yu > Assignee: Mark Hindess > Fix For: 5.0M11 > > Attachments: HARMONY-6233.diff > > Original Estimate: 24h > Remaining Estimate: 24h > > There is a simple testcase as following. For RI, it will print the message as the implies method will return true while our java 6 branch would return false. Obviously, our behavior is incorrect since "exitVM" should be "implied by" "exitVM". I've got a fix for this bug. > import java.security.Permission; > public class TestRuntimePermission { > /** > * @param args > */ > public static void main(String[] args) { > Permission permission_exitVM = new RuntimePermission("exitVM"); > if(permission_exitVM.implies(new RuntimePermission("exitVM"))) { > System.out.println("exitVM implies exitVM"); > } > > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.