Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 64274 invoked from network); 3 Nov 2008 09:27:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Nov 2008 09:27:41 -0000 Received: (qmail 24001 invoked by uid 500); 3 Nov 2008 09:27:42 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 23967 invoked by uid 500); 3 Nov 2008 09:27:42 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 23616 invoked by uid 99); 3 Nov 2008 09:27:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2008 01:27:41 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Nov 2008 09:26:33 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6B65F234C26F for ; Mon, 3 Nov 2008 01:26:44 -0800 (PST) Message-ID: <1949731519.1225704404438.JavaMail.jira@brutus> Date: Mon, 3 Nov 2008 01:26:44 -0800 (PST) From: "Sean Qiu (JIRA)" To: commits@harmony.apache.org Subject: [jira] Assigned: (HARMONY-6006) [classlib] [luni] Cannot process platform paths using backslash In-Reply-To: <1150140985.1225704044265.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-6006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sean Qiu reassigned HARMONY-6006: --------------------------------- Assignee: Sean Qiu > [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: HY-1003.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.