equal
deleted
inserted
replaced
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) { |