harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Wu" <wuyue...@gmail.com>
Subject Re: [classlib][luni] File.canRead() returns false if File cannot be read
Date Fri, 25 May 2007 02:39:12 GMT
+1 for Harmony

On 5/25/07, Alexey Petrenko <alexey.a.petrenko@gmail.com> wrote:
> +1 for Harmony
>
> 2007/5/24, Alexei Zakharov <alexei.zakharov@gmail.com>:
> > 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
> >
>


-- 
Tony Wu
China Software Development Lab, IBM

Mime
View raw message