Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 43689 invoked from network); 18 Jan 2007 07:11:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Jan 2007 07:11:03 -0000 Received: (qmail 54839 invoked by uid 500); 18 Jan 2007 07:11:04 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 54801 invoked by uid 500); 18 Jan 2007 07:11:04 -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 54770 invoked by uid 99); 18 Jan 2007 07:11:03 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Jan 2007 23:11:03 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Jan 2007 23:10:50 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EF6DA7141D1 for ; Wed, 17 Jan 2007 23:10:29 -0800 (PST) Message-ID: <13346172.1169104229962.JavaMail.jira@brutus> Date: Wed, 17 Jan 2007 23:10:29 -0800 (PST) From: "Alexey Varlamov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-3015) [classlib] [security] Fixes for some minor bugs in the security module found by FindBugs In-Reply-To: <11513031.1169034268558.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-3015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465666 ] Alexey Varlamov commented on HARMONY-3015: ------------------------------------------ Actual fixes look good, except the following: --- src/main/java/common/java/security/BasicPermission.java (revision 494820) +++ src/main/java/common/java/security/BasicPermission.java (working copy) @@ -140,7 +140,7 @@ * It is assumed that names cannot be null or empty. */ static boolean nameImplies(String thisName, String thatName) { - if (thisName == thatName) { + if (thisName.equals(thatName)) { return true; } int end = thisName.length(); The "==" operator is used deliberately, to check fastpath. > [classlib] [security] Fixes for some minor bugs in the security module found by FindBugs > ---------------------------------------------------------------------------------------- > > Key: HARMONY-3015 > URL: https://issues.apache.org/jira/browse/HARMONY-3015 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Sian January > Priority: Minor > Attachments: exclusionFilter.xml.patch, security.patch > > > I am attaching a patch containing fixes for minor issues in the security module, and also a second patch for the exclusionFilter.xml file found in standard/tools/FindBugs to exclude false positives in the same module. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira