harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paulex Yang <paulex.y...@gmail.com>
Subject Re: [classlib][security] SecurityManager.checkPropertyAccess(String) bug?
Date Tue, 22 Aug 2006 05:40:45 GMT
Mikhail Loenko wrote:
> No
>
> The reason is these lines behave differently
>
> import java.security.*;
> import java.util.*;
> public class a {
>    static public void main(String[] args) throws Exception {
>        Permission p = new PropertyPermission("java.version", "read");
>        ProtectionDomain d = a.class.getProtectionDomain();
>        System.out.println( "== " + d.implies(p));
>    }
> }
Good catch! :-)
>
> 2006/8/22, Paulex Yang <paulex.yang@gmail.com>:
>>
>> Seems SecurityManager pass correct permission instance to
>> AccessController, should it be AccessController's issue?
>>
>
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
>


-- 
Paulex Yang
China Software Development Lab
IBM



---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Mime
View raw message