You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Nikolay Kuznetsov (JIRA)" <ji...@apache.org> on 2006/12/07 14:57:22 UTC

[jira] Updated: (HARMONY-2520) [classlib][io][compatibility] File.getPath() leaves extra path separator at the end while RI doesn't

     [ http://issues.apache.org/jira/browse/HARMONY-2520?page=all ]

Nikolay Kuznetsov updated HARMONY-2520:
---------------------------------------

    Attachment: test.java

> [classlib][io][compatibility] File.getPath() leaves extra path separator at the end while RI doesn't
> ----------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2520
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2520
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Nikolay Kuznetsov
>            Priority: Trivial
>         Attachments: test.java
>
>
> File.getPath() returns extra path separator at the end if file was created using File(File, String) constructor with empty string.
> Note that, if file is created using File(String) constructor with extra path separator getPath truncates it. 
> Attached test demonstrates this minor problem:
> RI output:
> new File(new File("a/b"), new String("")).getPath() == a\b
> PASSED
> Harmony output:
> new File(new File("a/b"), new String("")).getPath() == a\b\
> FAILED

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