--- old/src/share/classes/sun/module/repository/RepositoryConfig.java	Wed Aug  6 09:30:39 2008
+++ new/src/share/classes/sun/module/repository/RepositoryConfig.java	Wed Aug  6 09:30:39 2008
@@ -34,7 +34,6 @@
 import java.lang.reflect.Constructor;
 import java.lang.reflect.InvocationTargetException;
 import java.module.Modules;
-import java.module.ModuleSystemPermission;
 import java.module.Repository;
 import java.net.MalformedURLException;
 import java.net.URI;
@@ -142,20 +141,10 @@
     /**
      * Sets the application repository.
      * @param r {@code Repository} that will be the application repository
-     * SecurityException if a security manager exists and its
-     * <tt>checkPermission</tt> method denies access to shutdown the
-     * repository.
      * @throws IllegalArgumentException if the application repository has already
      * been set via this method.
-     * @throws SecurityException if a security manager exists and its
-     * {@code checkPermission} method denies access to set the system
-     * repository.
      */
     public static void setApplicationRepository(Repository r) throws IllegalArgumentException {
-        SecurityManager sm = System.getSecurityManager();
-        if (sm != null) {
-            sm.checkPermission(new ModuleSystemPermission("setApplicationRepository"));
-        }
         if (applicationRepositoryWasSet) {
             throw new IllegalArgumentException("Application repository is already set.");
         } else {
