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.
org.netbeans.modules.cnd.modelimpl.csm.core.ModifyDocumentTest http://elif.russia.sun.com:8080/hudson/job/test-modelimpl-winxp/937/testReport/junit/org.netbeans.modules.cnd.modelimpl.csm.core/ModifyDocumentTest/testRemoveDeadBlock This test emulates modification of documents by inserting/deleting parts of code and then checking consistency of code model for the associated file. It fails randomly giving an info that we have issues in editing phase
one reason: - clean of buffers on modelsupport shutdown http://hg.netbeans.org/cnd-main?cmd=changeset;node=7af6de1f51a9 another reason: - on document modification all modified documents are queued - but using only one queue => each next can cancel previous => introduced task per file http://hg.netbeans.org/cnd-main?cmd=changeset;node=2f722c9a1c1b http://hg.netbeans.org/cnd-main?cmd=changeset;node=4dd7cdd78ad4 also changing buffer + attaching/detaching listeners from buffer are synced another reason: http://hg.netbeans.org/cnd-main?cmd=changeset;node=052ddfbb1e1d => two parse events were sent http://hg.netbeans.org/cnd-main?cmd=changeset;node=d7c5e9f37353 because modifying document caused ModelSupport to get stateChanged from DataObject.registry() then in this thread (EDT) new buffer is created and attached as listener to buffer. That results in adding listener to the document at the end of listeners list => listener would be notified immediately
editing info is stored in separate struct: http://hg.netbeans.org/cnd-main?cmd=changeset;node=0bd8af73712f
no failures during last 40 builds
Integrated into 'main-golden', will be available in build *201004240200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/fab7398d241a User: Vladimir Voskresensky <vv159170@netbeans.org> Log: fixing #184695 - Failures in dynamic ModifyDocumentTest - modified files are tracked by different handlers