harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-517) [classlib][luni] File.listFiles returns empty list but should return null
Date Thu, 24 May 2007 17:55:16 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-517?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alexei Zakharov resolved HARMONY-517.
-------------------------------------

    Resolution: Fixed

Ruth, I've analyzed your patch and found that there are several other methods like list(FileNameFilter)
and listFiles() in File.java that also could/should be fixed in the same way. Another thing
I've discovered is the fact that File.canRead() does nothing on Windows currently (you use
canRead() in your patch).

So I've created my own fix that is based on yours. It fixes all list methods of File class
and add functionality to the Windows version of getPlatformIsWriteOnly() native method from
"luni/windows/helpers.c". The fix was committed at the revision 541367. Please verify it solves
the original problem. 

> [classlib][luni] File.listFiles returns empty list but should return null
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-517
>                 URL: https://issues.apache.org/jira/browse/HARMONY-517
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Mark Hindess
>         Assigned To: Alexei Zakharov
>            Priority: Minor
>         Attachments: Harmony-517.diff, reading.chmod.0.directory.diff
>
>
> On unix, if I create a directory and then change the permissions to make it unreadable
("chmod 0 dir") then File.listFiles() on that directory on RI returns null but on Harmony
it returns the empty list.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message