classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A few small fixes


From: Jeroen Frijters
Subject: A few small fixes
Date: Thu, 5 Jun 2003 15:23:16 +0200

Hi,

I ran into a few small bugs. Attached is the patch file. Please apply if
they're OK.

Change Log

* java/lang/Class.java
(forName(String,boolean,ClassLoader)): call
ClassLoader.loadClass(String) instead of ClassLoader.loadClass(String,
boolean). There are ClassLoader subclasses out there that override
loadClass(String) instead of loadClass(String, boolean).

* java/net/URLClassLoader.java
(JarURLLoader.getResource): strip leading / from resource name
(addURL): moved implementation to the new addURLImpl and changed to call
new addURLImpl
(addURLImpl): new
(addURLs): call addURLImpl instead of addURL. This was done to be
compatible with Sun's implementation which doesn't call addURL for the
initial list of URLs passed in the constructor.

* java/util/zip/ZipFile.java
(finalize): added raf != null test. If construction fails, raf will be
null.

Regards,
Jeroen

Attachment: 20030605.patch
Description: 20030605.patch


reply via email to

[Prev in Thread] Current Thread [Next in Thread]