commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r227023 - /jakarta/commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/jdk/JDK12Hooks.java
Date Tue, 02 Aug 2005 15:23:08 GMT
Author: dims
Date: Tue Aug  2 08:23:04 2005
New Revision: 227023

URL: http://svn.apache.org/viewcvs?rev=227023&view=rev
Log:
Check permission to create a class loader (Axis fails in Applet Scenarios - http://issues.apache.org/jira/browse/AXIS-2145)


Modified:
    jakarta/commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/jdk/JDK12Hooks.java

Modified: jakarta/commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/jdk/JDK12Hooks.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/jdk/JDK12Hooks.java?rev=227023&r1=227022&r2=227023&view=diff
==============================================================================
--- jakarta/commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/jdk/JDK12Hooks.java
(original)
+++ jakarta/commons/proper/discovery/trunk/src/java/org/apache/commons/discovery/jdk/JDK12Hooks.java
Tue Aug  2 08:23:04 2005
@@ -210,7 +210,14 @@
         }
 
         if (classLoader == null) {
-            classLoader = new PsuedoSystemClassLoader();
+            SecurityManager security = System.getSecurityManager();
+            if (security != null) {
+                try {
+                    security.checkCreateClassLoader();
+                    classLoader = new PsuedoSystemClassLoader();
+                } catch (SecurityException se){
+                }
+            }
         }
         
         // Return the selected class loader



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message