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 - Pasting the generated jar file into another location fires events when the file is in an inconsistent state
Summary: Pasting the generated jar file into another location fires events when the fi...
Status: CLOSED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: jarpackager (show other bugs)
Version: -FFJ-
Hardware: All All
: P3 blocker (vote)
Assignee: issues@obsolete
URL:
Keywords:
Depends on:
Blocks: 20986
  Show dependency tree
 
Reported: 2002-04-15 10:55 UTC by Petr Jiricka
Modified: 2003-07-01 10:01 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Patch for orion_fcs branch. (2.77 KB, patch)
2002-04-15 14:23 UTC, Petr Jiricka
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.