This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 14555 - Mount wizard leaves JAR files open
Summary: Mount wizard leaves JAR files open
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Other
: P2 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-08-18 01:46 UTC by Mike Schilling
Modified: 2008-12-22 20:57 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Schilling 2001-08-18 01:46:24 UTC
The mount wizard creates a JarFileSystem when verifying that a selected JAR is 
valid and not already mounted.  Even if the wizard is cancelled or another JAR 
file selected, this JarFileSystem is never disposed of, leaving the file open.  
The result is that on Windows, this file can not be deleted or moved until the 
IDE is shut down.

This is an istance of a general problem with the JFS.  It's very tempting for 
client code to create a JFS to access the jar file, or in this case have its 
system name created the canonical way.  But there's no obvious requirement to 
shut it down correctly, or even an obvious method to call to do so.
Comment 1 Jan Zajicek 2001-08-20 09:37:47 UTC
Reassigning. Calling removeNotify() should close the JarFile.
Automount should handle this if the file isn't mounted.
Comment 2 Jaroslav Tulach 2001-08-21 13:55:37 UTC
core.ui.MountIterator rev. 1.8
Comment 3 Quality Engineering 2003-07-01 16:01:31 UTC
Resolved for 3.4.x or earlier, no new info since then -> verified.

Comment 4 Quality Engineering 2003-07-01 16:48:08 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.