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 <[EMAIL PROTECTED]>:

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Paulex Yang
China Software Development Lab
IBM



---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to