Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 81325 invoked from network); 3 Dec 2005 01:42:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Dec 2005 01:42:21 -0000 Received: (qmail 56505 invoked by uid 500); 3 Dec 2005 01:41:13 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 56262 invoked by uid 500); 3 Dec 2005 01:41:12 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 55671 invoked by uid 99); 3 Dec 2005 01:41:08 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2005 17:41:07 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 8A20C686 for ; Fri, 2 Dec 2005 23:16:31 +0100 (CET) Message-ID: <2014724450.1133561791563.JavaMail.jira@ajax.apache.org> Date: Fri, 2 Dec 2005 23:16:31 +0100 (CET) From: "Tim Ellison (JIRA)" To: harmony-dev@incubator.apache.org Subject: [jira] Updated: (HARMONY-21) File constructor produces wrong path to absolute path specified relative to root In-Reply-To: <1808580127.1133532270316.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ 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