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 22438

Summary: Pasting the generated jar file into another location fires events when the file is in an inconsistent state
Product: obsolete Reporter: Petr Jiricka <pjiricka>
Component: jarpackagerAssignee: issues@obsolete <issues>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P3    
Version: -FFJ-   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 20986    
Attachments: Patch for orion_fcs branch.

Description Petr Jiricka 2002-04-15 10:55:41 UTC
This is not reproducible through the UI, but affects 
integration with other modules. 

How this error can occur:
1. Create a JAR recipe, add some files and generate the 
jar file
2. Copy the physical jar file (not the recipe, but the 
node below).
3. Paste into another directory
4. Suppose there is a module which listens on creation of 
new files in this directory - this module will get an 
event when an empty jar file has been created, but no 
contents has been written to it, so it has size 0. This 
results in an invalid jar file.
Comment 1 Petr Jiricka 2002-04-15 10:57:08 UTC
Depends on 20986, marking as 3.3.2_CANDIDATE
Comment 2 Petr Jiricka 2002-04-15 14:19:47 UTC
Fixed in NetBeans main trunk.

jarpackager/src/org/netbeans/modules/jarpackager/JarChildre
n.java rev 1.13.
Comment 3 Petr Jiricka 2002-04-15 14:23:31 UTC
Created attachment 5409 [details]
Patch for orion_fcs branch.
Comment 4 Petr Jiricka 2002-04-16 10:47:09 UTC
Integrated into [orion_fcs].
Comment 5 Petr Jiricka 2002-04-16 10:49:22 UTC
Integrated to [orion_fcs].
Comment 6 Quality Engineering 2003-07-01 09:57:35 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 7 Quality Engineering 2003-07-01 09:59:57 UTC
Resolved for 3.4 or earlier, no new info since then -> closing.
Comment 8 Quality Engineering 2003-07-01 10:01:22 UTC
Resolved for 3.4 or earlier, no new info since then -> closing.