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.
I've just encountered following exception after pressing ALT+G: java.lang.ClassCastException: javax.swing.text.PlainDocument at org.netbeans.modules.cnd.completion.cplusplus.CCGoToDeclarationAction$1.run(CCGoToDeclarationAction.java:105) at org.netbeans.modules.cnd.modelimpl.csm.core.CodeModelRequestProcessor$1.run(CodeModelRequestProcessor.java:57) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539) [catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964) Weird thing is that it worked before and after it also, therefor I'll add RANDOM keyword. Product Version = NetBeans IDE Dev (Build 200709030000) Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.5.0_12; Java HotSpot(TM) Client VM 1.5.0_12-b04; Sun Microsystems Inc.
have you pressed ALT+G in C/C++ file? If yes => is everything OK with syntax highlighting in that file? Have you opened any Shlieman-based files before that?
Well it happened several days ago and I only saved the stacktrace. Unfortunately I don't remember whether something happend with syntax highlighting. I am quite sure it didn't stop working completely as I would most probably notice it (I continued working). But as I said before, it worked before and after it again, it happened only once to me. I didn't open any Schlieman-based file, I was working only on my c++ project. Maybe I opened some java files, but nothing else.
fixed: - added check of document instance cvs log: Checking in CCGoToDeclarationAction.java; /shared/data/ccvs/repository/cnd/completion/src/org/netbeans/modules/cnd/completion/cplusplus/CCGoToDeclarationAction.java,v <-- CCGoToDeclarationAction.java new revision: 1.7; previous revision: 1.6 done
I didn't succeed in reproducing, verified.