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 38677 - Annotation: Invalid lock [org.openide.filesystems.MultiFileObject]
Summary: Annotation: Invalid lock [org.openide.filesystems.MultiFileObject]
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Text (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords:
: 35505 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-01-13 10:09 UTC by vanob
Modified: 2008-12-23 00:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide.log (249.20 KB, text/plain)
2004-01-13 11:27 UTC, vanob
Details
Suggested fix (377 bytes, patch)
2004-01-27 09:10 UTC, rmatous
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description vanob 2004-01-13 10:09:48 UTC
When I want to save a file, IDE gives me an
exception and the file can not be saved.

attaching ide.log
Comment 1 vanob 2004-01-13 11:27:53 UTC
Created attachment 12850 [details]
ide.log
Comment 2 Martin Roskanin 2004-01-23 14:58:02 UTC
reassigning to openide
Comment 3 Marian Mirilovic 2004-01-26 09:02:44 UTC
Radek, 
please look at it, thanks .
Comment 4 rmatous 2004-01-27 09:10:55 UTC
Created attachment 13084 [details]
Suggested fix
Comment 5 rmatous 2004-01-27 09:20:43 UTC
This issue is design problem that can't be easily 100% fixed. Method
MultiDataObject.Entry.takeLock provides common FileLock as shared lock
without appropriate logic (increment, decrement count before release
and so on).

On the other hand I hope that suggested fix could help. Petr please
verify somehow (e.g. include new test).

Reassigned.
Comment 6 rmatous 2004-01-27 09:52:31 UTC
*** Issue 35505 has been marked as a duplicate of this issue. ***
Comment 7 Petr Nejedly 2004-02-17 11:46:06 UTC
Integrated.
openide/loaders/src/org/openide/text/DataEditorSupport.java,v1.13
Comment 8 Marian Mirilovic 2004-07-30 12:57:48 UTC
verified