You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tim Ellison (JIRA)" <ji...@apache.org> on 2007/01/15 11:12:28 UTC
[jira] Closed: (HARMONY-2520) [classlib][io][compatibility]
File.getPath() leaves extra path separator at the end while RI doesn't
[ 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