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 243384 - ClassCastException: org.netbeans.modules.cnd.modelimpl.csm.MacroImpl cannot be cast to org.netbeans.modules.cnd.api.model.CsmDeclaration
Summary: ClassCastException: org.netbeans.modules.cnd.modelimpl.csm.MacroImpl cannot b...
Status: RESOLVED WONTFIX
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Completion (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-30 15:04 UTC by Exceptions Reporter
Modified: 2014-08-18 08:49 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 208731


Attachments
stacktrace (3.67 KB, text/plain)
2014-03-30 15:04 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2014-03-30 15:04:18 UTC
This issue was reported manually by alexvsimon.
It already has 2 duplicates 


Build: NetBeans IDE 8.0 (Build 201403101706)
VM: Java HotSpot(TM) Client VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Windows XP

User Comments:
GUEST: Editing my C source code

GUEST: Editing my C source code




Stacktrace: 
java.lang.ClassCastException: org.netbeans.modules.cnd.modelimpl.csm.MacroImpl cannot be cast to org.netbeans.modules.cnd.api.model.CsmDeclaration
   at org.netbeans.modules.cnd.completion.csm.CsmProjectContentResolver.filterDeclarations(CsmProjectContentResolver.java:1482)
   at org.netbeans.modules.cnd.completion.csm.CsmProjectContentResolver.getNamespaceMembers(CsmProjectContentResolver.java:1427)
   at org.netbeans.modules.cnd.completion.csm.CsmProjectContentResolver.getNamespaceEnumerators(CsmProjectContentResolver.java:996)
   at org.netbeans.modules.cnd.completion.csm.CompletionResolverImpl.getGlobalEnumerators(CompletionResolverImpl.java:1045)
   at org.netbeans.modules.cnd.completion.csm.CompletionResolverImpl.resolveContext(CompletionResolverImpl.java:625)
   at org.netbeans.modules.cnd.completion.csm.CompletionResolverImpl.resolveContext(CompletionResolverImpl.java:262)
Comment 1 Exceptions Reporter 2014-03-30 15:04:21 UTC
Created attachment 146412 [details]
stacktrace
Comment 2 petrk 2014-03-31 10:42:08 UTC
Could you please provide test case?
Comment 3 Alexander Simon 2014-08-18 08:49:52 UTC
It seems code model cache is broken