2003-07-19 Jeroen Frijters <jeroen@sumatra.nl>
* java/net/URLClassLoader.java (addURL): Moved implementation to
private addURLImpl() to avoid calling addURL from the constructor.
(addURLImpl): Contains the code that was previously in addURL.
(addURLs): Call addURLImpl(), not addURL().
From-SVN: r69591
+2003-07-19 Jeroen Frijters <jeroen@sumatra.nl>
+
+ * java/net/URLClassLoader.java (addURL): Moved implementation to
+ private addURLImpl() to avoid calling addURL from the constructor.
+ (addURLImpl): Contains the code that was previously in addURL.
+ (addURLs): Call addURLImpl(), not addURL().
+
2003-07-18 Graydon Hoare <graydon@redhat.com>
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkScrollBarPeer.c:
if (jarfile == null)
return null;
+ if (name.startsWith("/"))
+ name = name.substring(1);
+
JarEntry je = jarfile.getJarEntry(name);
if(je != null)
return new JarURLResource(this, name, je);
* @param newUrl the location to add
*/
protected void addURL(URL newUrl)
+ {
+ addURLImpl(newUrl);
+ }
+
+ private void addURLImpl(URL newUrl)
{
synchronized(urlloaders)
{
{
for (int i = 0; i < newUrls.length; i++)
{
- addURL(newUrls[i]);
+ addURLImpl(newUrls[i]);
}
}