[ 
https://issues.apache.org/jira/browse/HADOOP-10876?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14090158#comment-14090158
 ] 

Andrew Wang commented on HADOOP-10876:
--------------------------------------

Some internal testing revealed that this has bad behavior with Path("."). This 
gets normalized to an empty URI, so the symmetry of {{new Path(path.toUri())}} 
is broken.

I'm going to revert this out of trunk and branch-2 momentarily.

> The constructor of Path should not take an empty URL as a parameter
> -------------------------------------------------------------------
>
>                 Key: HADOOP-10876
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10876
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: zhihai xu
>            Assignee: zhihai xu
>             Fix For: 2.6.0
>
>         Attachments: HADOOP-10876.000.patch, HADOOP-10876.001.patch
>
>
> The constructor of Path should not take an empty URL as a parameter, As 
> discussed in HADOOP-10820, This JIRA is to change Path constructor at public 
> Path(URI aUri) to check the empty URI and throw IllegalArgumentException for 
> empty URI.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to