Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 87867 invoked from network); 2 Dec 2005 14:07:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Dec 2005 14:07:56 -0000 Received: (qmail 77828 invoked by uid 500); 2 Dec 2005 14:05:04 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 77636 invoked by uid 500); 2 Dec 2005 14:05:02 -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 76554 invoked by uid 99); 2 Dec 2005 14:04:54 -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 06:04:51 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 4DA55DE for ; Fri, 2 Dec 2005 15:04:30 +0100 (CET) Message-ID: <1808580127.1133532270316.JavaMail.jira@ajax.apache.org> Date: Fri, 2 Dec 2005 15:04:30 +0100 (CET) From: "Tim Ellison (JIRA)" To: harmony-dev@incubator.apache.org Subject: [jira] Created: (HARMONY-21) File constructor produces wrong path to absolute path specified relative to root 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 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 Reporter: Tim Ellison Assigned to: 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