Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4233380
Votes 0
Synopsis URLClassLoader does not delete cached jar files
Category java:classes_net
Reported Against 1.2.1
Release Fixed
State 11-Closed, duplicate of 4166799, bug
Priority: 4-Low
Related Bugs 4166799
Submit Date 27-APR-1999
Description




Bug ID 4180369 says URLClassLoader cached jar files (jar_cacheXXX.tmp) should be deleted on exit as of 1.2fcs(File.deleteOnExit).

This isn't happening.  Run the attached application and check your temp directory - it leaves the jar_cache file after exiting.  Use "jar tvf" to view the contents of the jar_cache file to verify it is the one specified in the URL in the source code.


import java.net.*;
public class JarCacheJunk {
	public static void main(String args[]) throws Exception {
		URL urls[] = new URL[1];
		urls[0] = new URL("http://morechat.talkcity.com/java/ezclasses/ezlite.jar");
		URLClassLoader cl = new URLClassLoader(urls);
		Class cls = cl.loadClass("lw.ezlite.EZLite");
		System.exit(0);
	}
}
(Review ID: 57157) 
======================================================================
Work Around
N/A
Evaluation
N/A
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang