[
http://issues.apache.org/jira/browse/HARMONY-21?page=comments#action_12363265 ]
Vladimir Strigun commented on HARMONY-21:
-
Sorry, of course it's ok .
> File constructor produces wrong path to absolute path specified relative to
> root
> -
[
http://issues.apache.org/jira/browse/HARMONY-21?page=comments#action_12361428 ]
Tim Ellison commented on HARMONY-21:
Vladimir,
In fact I didn't take your suggestion directly, but have a different fix.
Please take a look at the code committed in SVN
[
http://issues.apache.org/jira/browse/HARMONY-21?page=comments#action_12361427 ]
Vladimir Strigun commented on HARMONY-21:
-
Unfortunately, I have regression with my fix. Next test is failed with my fix:
import java.io.*;
public class Test {
p
[
http://issues.apache.org/jira/browse/HARMONY-21?page=comments#action_12359731 ]
Vladimir Strigun commented on HARMONY-21:
-
I've found that my fix isn't good for Linux. When I try to create file using
File("//usr") I get incorrect absolute path: "/
[
http://issues.apache.org/jira/browse/HARMONY-21?page=comments#action_12359262 ]
Tim Ellison commented on HARMONY-21:
Fix looks good for both (String,String) and (File,String) constructors.
I've verified that the test above passes with this patch.
> F
[
http://issues.apache.org/jira/browse/HARMONY-21?page=comments#action_12359243 ]
Vladimir Strigun commented on HARMONY-21:
-
The cause of problem is realization of fixSlashes() method of java.io.File.
Another testcase for this bug is almost the same