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

Summary: ClassCastException: org.netbeans.modules.cnd.modelimpl.csm.MacroImpl cannot be cast to org.netbeans.modules.cnd.api.model.CsmDeclaration
Product: cnd Reporter: Exceptions Reporter <exceptions_reporter>
Component: Code CompletionAssignee: issues@cnd <issues>
Status: RESOLVED WONTFIX    
Severity: normal CC: alexvsimon
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 208731
Attachments: stacktrace

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