harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikolay Kuznetsov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-2520) [classlib][io][compatibility] File.getPath() leaves extra path separator at the end while RI doesn't
Date Thu, 07 Dec 2006 13:57:22 GMT
     [ 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

        

Mime
View raw message