1 |
/* URLClassLoader.java -- ClassLoader that loads classes from one or more URLs |
/* URLClassLoader.java -- ClassLoader that loads classes from one or more URLs |
2 |
Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. |
Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
573 |
addURLs(urls); |
addURLs(urls); |
574 |
} |
} |
575 |
|
|
576 |
|
// Package-private to avoid a trampoline constructor. |
577 |
/** |
/** |
578 |
* Private constructor used by the static |
* Package-private constructor used by the static |
579 |
* <code>newInstance(URL[])</code> method. Creates an |
* <code>newInstance(URL[])</code> method. Creates an |
580 |
* <code>URLClassLoader</code> with the given parent but without any |
* <code>URLClassLoader</code> with the given parent but without any |
581 |
* <code>URL</code>s yet. This is used to bypass the normal security |
* <code>URL</code>s yet. This is used to bypass the normal security |
587 |
* |
* |
588 |
* @param securityContext the security context of the unprivileged code. |
* @param securityContext the security context of the unprivileged code. |
589 |
*/ |
*/ |
590 |
private URLClassLoader(ClassLoader parent, |
URLClassLoader(ClassLoader parent, AccessControlContext securityContext) |
|
AccessControlContext securityContext) |
|
591 |
{ |
{ |
592 |
super(parent); |
super(parent); |
593 |
this.factory = null; |
this.factory = null; |