jdk/src/share/classes/javax/management/remote/JMXConnectorFactory.java
changeset 18187 a798516cf58d
parent 14917 bf08557604f8
child 18190 e45d26861c25
equal deleted inserted replaced
18186:482db5c3e9c0 18187:a798516cf58d
   540                     " attribute is not an instance of java.lang.ClassLoader";
   540                     " attribute is not an instance of java.lang.ClassLoader";
   541                 throw new IllegalArgumentException(msg);
   541                 throw new IllegalArgumentException(msg);
   542             }
   542             }
   543         }
   543         }
   544 
   544 
   545         if (loader == null)
   545         if (loader == null) {
   546             loader = AccessController.doPrivileged(
   546             loader = Thread.currentThread().getContextClassLoader();
   547                     new PrivilegedAction<ClassLoader>() {
   547         }
   548                         public ClassLoader run() {
       
   549                             return
       
   550                                 Thread.currentThread().getContextClassLoader();
       
   551                         }
       
   552                     });
       
   553 
   548 
   554         return loader;
   549         return loader;
   555     }
   550     }
   556 
   551 
   557     private static String protocol2package(String protocol) {
   552     private static String protocol2package(String protocol) {