mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-29 23:04:12 +08:00
Class.java (getProtectionDomain): Merged javadoc from Classpath.
* java/lang/Class.java (getProtectionDomain): Merged javadoc from Classpath. From-SVN: r102025
This commit is contained in:
parent
d71b89ca60
commit
9d5faaafe3
@ -1,3 +1,8 @@
|
||||
2005-07-14 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* java/lang/Class.java (getProtectionDomain): Merged javadoc from
|
||||
Classpath.
|
||||
|
||||
2005-07-12 Aaron Luchko <aluchko@redhat.com>
|
||||
|
||||
* gnu/classpath/jdwp/processor/FieldCommandSet.java:
|
||||
|
@ -769,6 +769,19 @@ public final class Class implements Serializable
|
||||
// can't add fields to java.lang.Class that are accessible from Java.
|
||||
private native ProtectionDomain getProtectionDomain0();
|
||||
|
||||
/**
|
||||
* Returns the protection domain of this class. If the classloader did not
|
||||
* record the protection domain when creating this class the unknown
|
||||
* protection domain is returned which has a <code>null</code> code source
|
||||
* and all permissions. A security check may be performed, with
|
||||
* <code>RuntimePermission("getProtectionDomain")</code>.
|
||||
*
|
||||
* @return the protection domain
|
||||
* @throws SecurityException if the security manager exists and the caller
|
||||
* does not have <code>RuntimePermission("getProtectionDomain")</code>.
|
||||
* @see RuntimePermission
|
||||
* @since 1.2
|
||||
*/
|
||||
public ProtectionDomain getProtectionDomain()
|
||||
{
|
||||
SecurityManager sm = System.getSecurityManager();
|
||||
|
Loading…
Reference in New Issue
Block a user