Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 12790 invoked from network); 24 May 2007 22:50:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 May 2007 22:50:03 -0000 Received: (qmail 57149 invoked by uid 500); 24 May 2007 22:50:06 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 56934 invoked by uid 500); 24 May 2007 22:50:05 -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 56925 invoked by uid 99); 24 May 2007 22:50:05 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 May 2007 15:50:05 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of alexey.a.petrenko@gmail.com designates 209.85.146.177 as permitted sender) Received: from [209.85.146.177] (HELO wa-out-1112.google.com) (209.85.146.177) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 May 2007 15:49:58 -0700 Received: by wa-out-1112.google.com with SMTP id k17so237142waf for ; Thu, 24 May 2007 15:49:38 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jnnV8aXHzaqGCVJgkalx5FuKXnBsuuc/oitUgZi8PJ9qss9WLCpvQSPtn8QhYQLKlkCeh1BvxVaPt1sd85R8JraXu3y6HiFfG0mnzybptrknbuaqfzP6KGWMTt/Zb9Hj+EAwqRPz1XpPoXrR6y7TwXfqd9hJsUG9iGB+o3zRvJc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=fdIzDV3TGiimjInAZd7zJr8FlXObVI0WVGMZOJ8Ld/jeto8BHbdquKAEPgkzYoHQoD+4csyEj4XgGh3MgbpdH3Uo5MLFVr7ktCbMMKW0zUFGWkNC0cUvJGFVv+vD51zzAax8qamddjvVgY5+E8nn61e7n+CAgvtIHh3enrfWig4= Received: by 10.114.106.1 with SMTP id e1mr1176137wac.1180046978282; Thu, 24 May 2007 15:49:38 -0700 (PDT) Received: by 10.114.120.5 with HTTP; Thu, 24 May 2007 15:49:38 -0700 (PDT) Message-ID: Date: Fri, 25 May 2007 02:49:38 +0400 From: "Alexey Petrenko" To: dev@harmony.apache.org Subject: Re: [classlib][luni] File.canRead() returns false if File cannot be read In-Reply-To: <2c9597b90705241110o1756773endebfb1571eea516d@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2c9597b90705241110o1756773endebfb1571eea516d@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org +1 for Harmony 2007/5/24, Alexei Zakharov : > Hi all, > > Today while working on HARMONY-517 I've added implementation for > getPlatformIsWriteOnly() native method from "luni/windows/helpers.c". > As a result we've got a small difference between our and RI's behavior > in File.canRead(). > > This method now returns false on Harmony in Windows environment in > case if file cannot be read indeed due to NTFS security restrictions > or some other reason. RI returns true in all cases. > > From the Javadoc spec for the canRead() method: > "Returns: true if and only if the file specified by this abstract > pathname exists and can be read by the application; false otherwise" > > Looks like the Harmony behavior is correct and should not be fixed. > I've created HARMONY-3960 to log this. > > Comments, objections? > > -- > Alexei Zakharov, > Intel ESSD >