aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/security/SecureClassLoader.java
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/security/SecureClassLoader.java')
-rw-r--r--libjava/java/security/SecureClassLoader.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/libjava/java/security/SecureClassLoader.java b/libjava/java/security/SecureClassLoader.java
index d4ba77b..9a4e672 100644
--- a/libjava/java/security/SecureClassLoader.java
+++ b/libjava/java/security/SecureClassLoader.java
@@ -51,12 +51,16 @@ public class SecureClassLoader extends ClassLoader
protected SecureClassLoader(ClassLoader parent)
{
super(parent);
- // FIXME: What else?
+ SecurityManager sm = System.getSecurityManager();
+ if(sm != null)
+ sm.checkCreateClassLoader();
}
protected SecureClassLoader()
{
- // FIXME: What do we need to do here?
+ SecurityManager sm = System.getSecurityManager();
+ if(sm != null)
+ sm.checkCreateClassLoader();
}
/**