harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ruth Cao (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-517) [classlib][luni] File.listFiles returns empty list but should return null
Date Fri, 20 Apr 2007 09:12:15 GMT

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

Ruth Cao updated HARMONY-517:
-----------------------------

    Attachment: Harmony-517.diff

Hello,
I'm looking into this issue and it seems that we can use File.canRead() to filter this kind
of situation. Alexey, may you pls try this patch? Thanks.

Besides, it might be easy to write a test case for this issue in java 6 since it provides
a new method called File.setReadable. Maybe we can add it in java6 branch in the future :-)

> [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
>            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