You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by "Tim Ellison (JIRA)" <ji...@apache.org> on 2005/12/02 23:16:31 UTC

[jira] Updated: (HARMONY-21) File constructor produces wrong path to absolute path specified relative to root

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

Tim Ellison updated HARMONY-21:
-------------------------------

    Component: Classlib

> File constructor produces wrong path to absolute path specified relative to root
> --------------------------------------------------------------------------------
>
>          Key: HARMONY-21
>          URL: http://issues.apache.org/jira/browse/HARMONY-21
>      Project: Harmony
>         Type: Bug
>   Components: Classlib
>     Reporter: Tim Ellison
>     Assignee: Geir Magnusson Jr

>
> Specifying an absolute path relative to the root directory produces the wrong final pathname.
> Here's a simple test illustrating the problem:
> 	public void test_File_Constructor() {
> 		File path = new File("/dir/file");
> 		File root = new File("/");
> 		File file = new File(root, "/dir/file");
> 		assertEquals("wrong path result ", path.getPath(), file.getPath());
> 	}

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