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 21944 - Editor component is restored even when image is deleted from disk
Summary: Editor component is restored even when image is deleted from disk
Status: RESOLVED FIXED
Alias: None
Product: utilities
Classification: Unclassified
Component: Image (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@utilities
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-28 11:15 UTC by _ rkubacki
Modified: 2002-06-26 14:47 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 _ rkubacki 2002-03-28 11:15:31 UTC
To reproduce: start IDE and open an image in editor window. Stop the IDE, delete
this image from disk and start it again. There is empty image editor. 

This is not consistent with Java editing.
Comment 1 Peter Zavadsky 2002-03-28 15:00:36 UTC
Try to make it the way CloneableEditor discards itself.

Have a look in the code at the discard method and its use especially
in writeReplace and readResolve methods.. 

Basically it makes itself not serializable (openable) if its object is
invalid.
Comment 2 Jan Jancura 2002-06-26 14:47:19 UTC
fixed in the main trunk