harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Regis Xu (JIRA)" <j...@apache.org>
Subject [jira] Closed: (HARMONY-6125) [classlib][luni] - remove duplicated security check in File.list
Date Tue, 14 Apr 2009 07:23:15 GMT

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

Regis Xu closed HARMONY-6125.
-----------------------------


> [classlib][luni] - remove duplicated security check in File.list
> ----------------------------------------------------------------
>
>                 Key: HARMONY-6125
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6125
>             Project: Harmony
>          Issue Type: Sub-task
>          Components: Classlib
>    Affects Versions: 5.0M8
>            Reporter: Regis Xu
>         Attachments: File.list.refactor.diff
>
>
> in the list implementation:
>         SecurityManager security = System.getSecurityManager();
>         if (security != null) {
>             security.checkRead(path);
>         }
>         if (!isDirectory() || !canRead()) {
>             return null;
>         }
> isDirectory and canRead also check security by security.checkRead, it's unnecessary and
time cost. I'll attach patch to fix this.

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