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 11507 - Can't delete jarContent after compiling
Summary: Can't delete jarContent after compiling
Status: CLOSED WONTFIX
Alias: None
Product: obsolete
Classification: Unclassified
Component: jarpackager (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P1 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-04-18 05:19 UTC by John Baker
Modified: 2003-07-01 10:01 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 John Baker 2001-04-18 05:19:33 UTC
Using build 010417_1 on Windows NT

To reproduce:

1) Mount a new filesystem
2) Create a new package named MyPackage
3) Create a new class 
4) Compile the class
5) Create new jar contents named m5
   a) add package 
   b) create in default location (this may not matter)
6) Compile the jar content file
7) Try to delete the jar content file

Result:
Tue Apr 17 21:28:36 GMT+01:00 2001: org.openide.filesystems.FSException:  Cannot
delete file MyPackage/m5.jar in
C:\WINNT\Profiles\Administrator\forte4j417\sampledir\test1.
org.openide.filesystems.FSException: Cannot delete file MyPackage/m5.jar in
C:\WINNT\Profiles\Administrator\forte4j417\sampledir\test1.
        at org.openide.filesystems.FSException.io(FSException.java:78)
        at
org.openide.filesystems.LocalFileSystem.delete(LocalFileSystem.java:278)
        at org.netbeans.core.ExLocalFileSystem.delete(ExLocalFileSystem.java:74)
        at
org.openide.filesystems.LocalFileSystem$Impl.delete(LocalFileSystem.java:597)
        at
org.openide.filesystems.AbstractFileObject.delete(AbstractFileObject.java:459)
        at org.openide.loaders.FileEntry.delete(FileEntry.java:100)
        at
org.openide.loaders.MultiDataObject.handleDelete(MultiDataObject.java:371)
        at
org.netbeans.modules.jarpackager.JarDataObject.handleDelete(JarDataObject.java:86)
        at org.openide.loaders.DataObject$2.run(DataObject.java:497)
        at
org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:69)
        at
org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:366)
        at org.openide.loaders.DataObject.delete(DataObject.java:495)
        at org.openide.loaders.DataNode.destroy(DataNode.java:211)
        at org.openide.nodes.FilterNode.destroy(FilterNode.java:315)
        at org.openide.explorer.ExplorerActions$1.run(ExplorerActions.java:460)
        at
org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:69)
        at
org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:366)
        at
org.openide.explorer.ExplorerActions$DeleteActionPerformer.performAction(ExplorerActions.java:456)
        at
org.openide.util.actions.CallbackSystemAction.performAction(CallbackSystemAction.java:78)
        at
org.openide.util.actions.CallableSystemAction.actionPerformed(CallableSystemAction.java:66)
        at org.netbeans.core.ModuleActions$1.run(ModuleActions.java:76)
        at org.openide.util.Task.run(Task.java:124)
[catch] at
org.openide.util.RequestProcessor$ProcessorThread.run(RequestProcessor.java:626)
Comment 1 John Baker 2001-04-18 23:31:53 UTC
There are potentially serious problems for the IDE if the user tries
to delete the .jar and .jarContent files outside of the IDE (on Windows NT)
If this happens then the IDE may not be able to load any filesystems
and is not really usable.
Comment 2 Mike Schilling 2001-04-21 03:03:24 UTC
This is atually being caused by the webadvanced module (which is why it doesn't 
reproduce in NetBeans or FJCE.)  I'm closing it here; I've opened a bugtraq bug 
4449058 to track it in closed source. 
Comment 3 Quality Engineering 2003-07-01 09:58:20 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 4 Quality Engineering 2003-07-01 09:59:54 UTC
Resolved for 3.4 or earlier, no new info since then -> closing.
Comment 5 Quality Engineering 2003-07-01 10:01:02 UTC
Resolved for 3.4 or earlier, no new info since then -> closing.