harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Zhou (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-6006) [classlib] [luni] Cannot process platform paths using backslash
Date Mon, 03 Nov 2008 09:28:44 GMT

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

Kevin Zhou updated HARMONY-6006:
--------------------------------

    Attachment:     (was: HY-1003.diff)

> [classlib] [luni] Cannot process platform paths using backslash
> ---------------------------------------------------------------
>
>                 Key: HARMONY-6006
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6006
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>    Affects Versions: 5.0M7
>            Reporter: Kevin Zhou
>            Assignee: Sean Qiu
>             Fix For: 5.0M8
>
>         Attachments: HARMONY-6006.diff
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> Defect Reproduce Steps:
> 1. Make folders like /ffs0/niagara/bin
> 2. Make a symbolic prefix link "/niagara" using the command:
> ln -s /ffs0/niagara /niagara
> 3. Run CanonicalPathTest [1] using the command:
> java CanonicalPathTest /niagara /ffs0/niagara /niagara/bin /ffs0/niagara/bin
> 4. Defect Result shown as [2], the correct result should  be [3].
> [1] CanonicalPathTest.java
> import java.io.File;
> import java.io.IOException;
> public class CanonicalPathTest {
> public static void main(String[] args) throws IOException {
> File file = null;
> for (int index = 0; index < args.length; index++) { file = new File(args[index]);
System.out.println(args[index] + "->" + file.getCanonicalPath()); }
> }
> }
> [2] Defect Result:
> /niagara->/ffs0/niagara
> /ffs0/niagara->/ffs0/niagara
> /niagara/bin->/niagara/bin   // it's wrong
> /ffs0/niagara/bin->/ffs0/niagara/bin
> [3] Correct Result:
> /niagara->/ffs0/niagara
> /ffs0/niagara->/ffs0/niagara
> /niagara/bin->/ffs0/niagara/bin
> /ffs0/niagara/bin->/ffs0/niagara/bi

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message