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.
if source file are edit by other editor and rebuild, either IDE tries to reload, or use file explorer to open the file, following exception occurred: Annotation: The document glue.cc could not be loaded. java.lang.ClassCastException: org.openide.text.PositionRef$Manager$OffsetKind at org.openide.text.PositionRef.getPosition(PositionRef.java:134) at org.openide.text.DocumentLine.updatePositionRef(DocumentLine.java:432) at org.openide.text.DocumentLine.notifyMove(DocumentLine.java:403) at org.openide.text.DocumentLine$Set.linesMoved(DocumentLine.java:711) at org.openide.text.LineListener.insertUpdate(LineListener.java:119) at org.openide.util.WeakListener$Document.insertUpdate(WeakListener.java:705) at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:184) at org.netbeans.editor.BaseDocument.fireInsertUpdate(BaseDocument.java:1004) at org.netbeans.editor.BaseDocument.insertString(BaseDocument.java:583) at org.netbeans.editor.Analyzer.read(Analyzer.java:501) at org.netbeans.editor.BaseDocument.read(BaseDocument.java:917) at org.netbeans.editor.BaseKit.read(BaseKit.java:411) at javax.swing.text.DefaultEditorKit.read(DefaultEditorKit.java:132) at org.openide.text.CloneableEditorSupport.loadFromStreamToKit(CloneableEditorSupport.java:841) at org.openide.text.EditorSupport$Del.superLoadFromStreamToKit(EditorSupport.java:661) at org.openide.text.EditorSupport.loadFromStreamToKit(EditorSupport.java:352) at org.openide.text.EditorSupport$Del.loadFromStreamToKit(EditorSupport.java:667) at org.openide.text.CloneableEditorSupport.loadDocument(CloneableEditorSupport.java:1167) at org.openide.text.CloneableEditorSupport.access$1500(CloneableEditorSupport.java:80) at org.openide.text.CloneableEditorSupport$Listener.run(CloneableEditorSupport.java:1627) at org.openide.util.Task.run(Task.java:136) at org.openide.text.CloneableEditorSupport$1.run(CloneableEditorSupport.java:348) at org.openide.util.Task.run(Task.java:136) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:328) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:670)
Mila, you've seen something similar, right?
*** Issue 37786 has been marked as a duplicate of this issue. ***
*** Issue 36975 has been marked as a duplicate of this issue. ***
A bit different exception, but it seems it represents the same race condition as issue 27773, which should be easily reproduced by the attached example. *** This issue has been marked as a duplicate of 27773 ***
verified