Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 22118 invoked from network); 28 Aug 2008 04:47:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Aug 2008 04:47:05 -0000 Received: (qmail 13413 invoked by uid 500); 28 Aug 2008 04:47:03 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 13391 invoked by uid 500); 28 Aug 2008 04:47:03 -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 13382 invoked by uid 99); 28 Aug 2008 04:47:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Aug 2008 21:47:03 -0700 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; Thu, 28 Aug 2008 04:46:14 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 69489234C1B1 for ; Wed, 27 Aug 2008 21:46:44 -0700 (PDT) Message-ID: <426772334.1219898804430.JavaMail.jira@brutus> Date: Wed, 27 Aug 2008 21:46:44 -0700 (PDT) From: "Regis Xu (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-5961) [classlib][luni]File.toURI() returns incorrect UNC uri In-Reply-To: <1862570203.1219897366062.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-5961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Regis Xu updated HARMONY-5961: ------------------------------ Attachment: HARMONY-5961.diff The patch only fix on windows. I notice Harmony has different behavior with RI when path name contains "\\" Harmony convert it to "/" and treat it as path seperator, while RI doesn't do that. > [classlib][luni]File.toURI() returns incorrect UNC uri > ------------------------------------------------------ > > Key: HARMONY-5961 > URL: https://issues.apache.org/jira/browse/HARMONY-5961 > Project: Harmony > Issue Type: Bug > Components: Classlib > Affects Versions: 5.0M7 > Reporter: Regis Xu > Fix For: 5.0M8 > > Attachments: HARMONY-5961.diff > > > below test case can pass on RI but failed on Harmony > public void test_toURI_UNC() throws Exception { > File f = new File("\\\\unchost\\[dir]\\file.txt"); > assertNotNull(f.toURI()); > assertTrue("incorrect URI for UNC path: " + f.toURI(), f.toURI().equals(new URI("file:////unchost/%5Bdir%5D/file.txt"))); > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.