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] Created: (HARMONY-6125) [classlib][luni] - remove duplicated security check in File.list
Date Mon, 23 Mar 2009 02:56:50 GMT
[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

in the list implementation:

        SecurityManager security = System.getSecurityManager();
        if (security != null) {
        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.

View raw message