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 114889 - CCE after go to declaration
Summary: CCE after go to declaration
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2007-09-06 14:09 UTC by novakm
Modified: 2007-09-21 08:50 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 novakm 2007-09-06 14:09:59 UTC
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.
Comment 1 Vladimir Voskresensky 2007-09-06 14:16:22 UTC
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?
Comment 2 novakm 2007-09-06 14:32:40 UTC
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.
Comment 3 Vladimir Voskresensky 2007-09-18 15:48:40 UTC
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
Comment 4 novakm 2007-09-21 08:50:20 UTC
I didn't succeed in reproducing, verified.