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 267255

Summary: ClassCastException: org.netbeans.modules.cnd.modelimpl.content.file.ReferencesIndex 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    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 225375
Attachments: stacktrace

Description Exceptions Reporter 2016-07-22 16:22:22 UTC
This bug was originally marked as duplicate of bug 242871, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-b27
OS: Linux

User Comments:
GUEST: Waiting for autocompletion...




Stacktrace: 
java.lang.ClassCastException: org.netbeans.modules.cnd.modelimpl.content.file.ReferencesIndex cannot be cast to org.netbeans.modules.cnd.api.model.CsmDeclaration
   at org.netbeans.modules.cnd.completion.csm.CsmProjectContentResolver.filterDeclarations(CsmProjectContentResolver.java:1521)
   at org.netbeans.modules.cnd.completion.csm.CsmProjectContentResolver.getNamespaceMembers(CsmProjectContentResolver.java:1454)
   at org.netbeans.modules.cnd.completion.csm.CsmProjectContentResolver.getNamespaceMembers(CsmProjectContentResolver.java:1432)
   at org.netbeans.modules.cnd.completion.csm.CsmProjectContentResolver.getNamespaceMembers(CsmProjectContentResolver.java:1427)
   at org.netbeans.modules.cnd.completion.csm.CsmProjectContentResolver.getNamespaceClassesEnums(CsmProjectContentResolver.java:988)
   at org.netbeans.modules.cnd.completion.csm.CsmProjectContentResolver$3.getResults(CsmProjectContentResolver.java:418)
Comment 1 Exceptions Reporter 2016-07-22 16:22:24 UTC
Created attachment 161385 [details]
stacktrace
Comment 2 Alexander Simon 2016-08-15 08:24:17 UTC
Some Netbeans modules are not updated.
As result Netbeans has wrong installation.
Try to reinstall Netbeans.