harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Ellison (JIRA)" <j...@apache.org>
Subject [jira] Closed: (HARMONY-2520) [classlib][io][compatibility] File.getPath() leaves extra path separator at the end while RI doesn't
Date Mon, 15 Jan 2007 10:12:28 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-2520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tim Ellison closed HARMONY-2520.
--------------------------------

    Resolution: Cannot Reproduce
      Assignee: Tim Ellison

Closing as cannot reproduce.

Nikolay, please let us know if you want it reopened.


> [classlib][io][compatibility] File.getPath() leaves extra path separator at the end while
RI doesn't
> ----------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2520
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2520
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Nikolay Kuznetsov
>         Assigned To: Tim Ellison
>            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: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message