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 29617 - NPE on delete edited file
Summary: NPE on delete edited file
Status: CLOSED DUPLICATE of bug 30958
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-18 13:36 UTC by pzajac
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception (2.13 KB, text/plain)
2002-12-18 13:38 UTC, pzajac
Details
exception stacktrace (5.96 KB, text/plain)
2003-02-27 13:59 UTC, pzajac
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pzajac 2002-12-18 13:36:23 UTC
[200212170100]
File AllreadyLockedException when I tried to
delete java file from project. The java file was
edited in In editor. The source in editor was
changed and unsaved. It doesn't seem as problem
delete action on JavaDataObject. It can be problem
in editor. Please evaluate.
Comment 1 pzajac 2002-12-18 13:38:20 UTC
Created attachment 8366 [details]
exception
Comment 2 Tomas Zezula 2003-01-02 09:51:04 UTC
The exception is caused due to "behaviour" of the DataEditorSupport.
The DataEditorSupport holds a lock from the call of markModified
method to call of unmarkModified method.
The same holds for the rename operation.
This can be fixed in the JavaEditor, by refactoring takeLock method in
JavaEditor.Env.
Comment 3 Tomas Zezula 2003-01-02 12:22:38 UTC
Fixed by using lock from MultiDataObject.Entry rather then from
FileObject in the JavaEditor.Env
Comment 4 Jan Becicka 2003-02-27 12:32:12 UTC
Reporter, could you verify this bug? Thanks
Comment 5 pzajac 2003-02-27 13:57:53 UTC
hm, no file is locked but after delete NPE exception thrown.
Comment 6 pzajac 2003-02-27 13:59:11 UTC
Created attachment 9199 [details]
exception stacktrace
Comment 7 Tomas Zezula 2003-03-25 17:31:08 UTC
Seems that new problem occuder, now in the SourcesLook and
CompilationUnit.
Comment 8 Tomas Zezula 2003-03-25 17:46:30 UTC

*** This issue has been marked as a duplicate of 30958 ***
Comment 9 pzajac 2003-04-03 15:00:23 UTC
verified
Comment 10 Jan Becicka 2003-11-25 14:21:32 UTC
As described in
http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the
current work on projects prototype has been stopped.

Marking issue as CLOSED.