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 89886 - DefaultSettings store method cause FileAlreadyLocked exception
Summary: DefaultSettings store method cause FileAlreadyLocked exception
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Palette (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
Depends on:
Blocks: 86566
  Show dependency tree
 
Reported: 2006-11-22 17:05 UTC by luky
Modified: 2008-12-22 21:32 UTC (History)
0 users

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 luky 2006-11-22 17:05:36 UTC
Store method of DefaultSettings synchronized on "this" to get a file lock. 
However if you have multiple DefaultSettings objects operating on the same 
file object (example CDC Pack - Swing and AWT palette) you will get 
FileAlreadyLock excpetion if both of the settings try to store data
Comment 1 Stanislav Aubrecht 2006-11-23 16:50:38 UTC
fixed in trunk

Checking in src/org/netbeans/modules/palette/DefaultSettings.java;
/cvs/core/palette/src/org/netbeans/modules/palette/DefaultSettings.java,v  <-- 
DefaultSettings.java
new revision: 1.14; previous revision: 1.13
done
Checking in src/org/netbeans/modules/palette/Bundle.properties;
/cvs/core/palette/src/org/netbeans/modules/palette/Bundle.properties,v  <-- 
Bundle.properties
new revision: 1.14; previous revision: 1.13
done
Checking in test/unit/src/org/netbeans/spi/palette/AbstractPaletteTestHid.java;
/cvs/core/palette/test/unit/src/org/netbeans/spi/palette/AbstractPaletteTestHid.java,v
 <--  AbstractPaletteTestHid.java
new revision: 1.3; previous revision: 1.2
done