Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 24889 invoked from network); 18 Jan 2010 09:44:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Jan 2010 09:44:58 -0000 Received: (qmail 52373 invoked by uid 500); 18 Jan 2010 09:44:57 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 51872 invoked by uid 500); 18 Jan 2010 09:44:56 -0000 Mailing-List: contact dev-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 dev@harmony.apache.org Received: (qmail 51664 invoked by uid 99); 18 Jan 2010 09:44:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jan 2010 09:44:56 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of littlee1032@gmail.com designates 209.85.223.175 as permitted sender) Received: from [209.85.223.175] (HELO mail-iw0-f175.google.com) (209.85.223.175) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jan 2010 09:44:48 +0000 Received: by iwn5 with SMTP id 5so982558iwn.24 for ; Mon, 18 Jan 2010 01:44:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=i1lanD3xZPh4mOumYdhXKiLBpyQyXWOFxYo3S1U3yPo=; b=TJp6GX4WB6yVE5vvrbfB+mnCIbE2Vw/Q4NBHT7XUibUNkG14vK5I8t3w1YBQ2WfYAv VwKcaGjzsOPCQ9e2rGxQZmIbVPuG/w2n0WkqdaA5LAB7I0DfYPQWAXiM0TsPtWiEyCT2 C8prZ/bSU+QyqrYXlLMSkbX5MksDnDV/jPHlU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=pHuzBPCA2+ps6T80aZu63aFLCTz8OfhnP+M/MQ4MpCcFqWypaW/mJpjroha/Jj6UPQ +RaRuzZjNZgSoNm5IEunPPfE3HyCKwTcXMQoz6FKs6AEhrqFho/IZjUy2WIZ+ISF1Jwn LUqWYmw9b5k58a21fqblfaGa5qfkWSVZB1jLg= MIME-Version: 1.0 Received: by 10.231.169.144 with SMTP id z16mr459932iby.25.1263807867616; Mon, 18 Jan 2010 01:44:27 -0800 (PST) Date: Mon, 18 Jan 2010 17:44:27 +0800 Message-ID: <5948b71e1001180144i6407706fw1d980f3a749f0aee@mail.gmail.com> Subject: File.getAbsolutePath() has bugs. From: Charles Lee To: dev@harmony.apache.org Content-Type: multipart/alternative; boundary=0016e6d26c5a037d90047d6d33e1 X-Virus-Checked: Checked by ClamAV on apache.org --0016e6d26c5a037d90047d6d33e1 Content-Type: text/plain; charset=ISO-8859-1 On windows platform, the test case is simple: *System.out.println(new File("D:tmp").getAbsolutePath());* I'm doing some investigation but have some questions: 1. windows has GetFullPathName method, but it is not thread-safe as msdn said. Does anyone know some thread-safe ways to get full path? 2. how does drlvm set usr.dir property? Is it from GetCurrentDirectory() ? Anyone could help on this? Thank you :) -- Yours sincerely, Charles Lee --0016e6d26c5a037d90047d6d33e1--