You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mikhail Markov (JIRA)" <ji...@apache.org> on 2007/01/15 06:54:27 UTC
[jira] Commented: (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:comment-tabpanel#action_12464657 ]
Mikhail Markov commented on HARMONY-2520:
-----------------------------------------
I could not reproduce this issue both on WinXP & Ubuntu.
So, seems like this JIRA could be closed.
> [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
> 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