Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 51667 invoked from network); 10 Jul 2006 15:55:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Jul 2006 15:55:35 -0000 Received: (qmail 92015 invoked by uid 500); 10 Jul 2006 15:55:35 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 91859 invoked by uid 500); 10 Jul 2006 15:55:34 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 91850 invoked by uid 99); 10 Jul 2006 15:55:34 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Jul 2006 08:55:34 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Jul 2006 08:55:32 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DDC53410485 for ; Mon, 10 Jul 2006 15:53:30 +0000 (GMT) Message-ID: <15406345.1152546810905.JavaMail.jira@brutus> Date: Mon, 10 Jul 2006 15:53:30 +0000 (GMT+00:00) From: =?utf-8?Q?Fr=C3=A9d=C3=A9ric_Bertin_=28JIRA=29?= To: hadoop-dev@lucene.apache.org Subject: [jira] Updated: (HADOOP-358) NPE in Path.equals In-Reply-To: <20670929.1152546809950.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HADOOP-358?page=3Dall ] Fr=C3=A9d=C3=A9ric Bertin updated HADOOP-358: ----------------------------------- Attachment: fixPathEquals.patch > NPE in Path.equals > ------------------ > > Key: HADOOP-358 > URL: http://issues.apache.org/jira/browse/HADOOP-358 > Project: Hadoop > Type: Bug > Components: fs > Versions: 0.4.0 > Reporter: Fr=C3=A9d=C3=A9ric Bertin > Attachments: fixPathEquals.patch > > An NPE is raised in Path.equals when testing the method with two unequal = pathes and with the first one having no drive. > This is due to operator precedence: && has a higher priority level than ?= : > See http://java.sun.com/docs/books/tutorial/java/nutsandbolts/expressions= .html > See attached patch (just added some parenthesis and a testcase). --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira