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.
Summary: | EditorCookie.Observable.PROP_DOCUMENT listeners have no chance to find out whether the document is loaded or closed | ||
---|---|---|---|
Product: | platform | Reporter: | Peter Zavadsky <pzavadsky> |
Component: | Text | Assignee: | Petr Nejedly <pnejedly> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | jtulach, markdey, pjiricka, sandipchitale, wjprakash |
Priority: | P2 | ||
Version: | 5.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 78597 | ||
Attachments: |
Suggested diff of fix (taken from 4.1 but also applicable to 5.5)
Probably better fix to suggest |
Description
Peter Zavadsky
2006-07-27 01:05:11 UTC
Created attachment 32248 [details]
Suggested diff of fix (taken from 4.1 but also applicable to 5.5)
Created attachment 32249 [details]
Probably better fix to suggest
Adjusting version. It is also in 5.5. openide/text/src/org/openide/text/CloneableEditorSupport.java,v1.22 Looks like the fix is not there in 5.5 branch. Will it be possible to fix this in NB 5.5? This is a blocking issue for Creator Pack (Shortfin). Keep this fixed(Dev). I added 5.5_candidate keyword. While the fix is not really 100% compatible, I believe it is OK to backport it to 5.5 I hope this will get fixed in 5.5. Creator source modeler depends on this event for setting its state. Because of this spurious event, source modeler thinks the Document is closed (even though it is not) tries to set its internal state erraneously and on the process corrupts the model and results in project being getting corrupted. So it is a real blocker for Creator pack. Integrated into release55: openide/text/src/org/openide/text/CloneableEditorSupport.java,v1.6.6.1.2.2 |