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 44968 - IDE should provide safe "Save Document" action
Summary: IDE should provide safe "Save Document" action
Status: CLOSED INVALID
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 4.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: rmatous
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-16 13:14 UTC by ehucka
Modified: 2008-12-22 19:37 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Example stacktrace. (4.36 KB, text/plain)
2004-06-16 13:14 UTC, ehucka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ehucka 2004-06-16 13:14:15 UTC
Example: After a JavaModel is corupted a user
cannot save changed document.

I think the Save Document action should be
implemented better. A document content must be
written into a file.
Exceptions from FileChanged notifiations cannot
break the saving of a document.
Comment 1 ehucka 2004-06-16 13:14:48 UTC
Created attachment 15753 [details]
Example stacktrace.
Comment 2 Milos Kleint 2004-06-16 13:19:35 UTC
actualy I'm getting similar exceptions today a lot.. BUT the document
gets saved, just the notification that the files is modified stays there..
Comment 3 rmatous 2004-06-16 13:29:56 UTC
Are you joking or what does it mean ? Why do you file it against
filesystems ? 

*** This issue has been marked as a duplicate of 44934 ***
Comment 4 ehucka 2004-06-16 13:38:45 UTC
Aha, I was mystifing by IDE. It's good way to panic when IDE looks it
cannot save your documents :).
But a document should be set as saved in despite of state of Java and
other models.

Radek: You can close it as INVALID or decrease priority. But it is not
duplicate of the java problem. I thought the problem in notification
after the saving of a document. It is possible to get IDE into
inconsistent state. It doesn't matter why.
Comment 5 rmatous 2004-06-16 14:25:59 UTC
What are you speaking about ? Naturally its possible to get IDE into
inconsistent state e.g. if you cause ClassCastException. If you think
that implementations of FileChangeListener can arbitrarily crash then
forget about it. No artificial intelligence in openide and core yet.
Comment 6 ehucka 2004-06-16 14:47:57 UTC
I only don't know why state of a document depends on state of some
model. I think all models are builded above documents.
I mean when I invoke Close Document and it is changed it will be saved
and closed independently of thrown non-ioexceptions.
I know "restart IDE" is the solution.
Comment 7 Marian Mirilovic 2005-07-15 07:53:39 UTC
closed