hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frédéric Bertin (JIRA) <j...@apache.org>
Subject [jira] Updated: (HADOOP-358) NPE in Path.equals
Date Mon, 10 Jul 2006 15:53:30 GMT
     [ http://issues.apache.org/jira/browse/HADOOP-358?page=all ]

Frédéric 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édéric 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).

-- 
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


Mime
View raw message