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 249817

Summary: ClassCastException: org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl cannot be cast to org.netbeans.modules.cnd.modelimpl.content.file.FileComponent
Product: cnd Reporter: kliteyn
Component: Code ModelAssignee: petrk
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 214785
Attachments: stacktrace

Description kliteyn 2015-01-14 23:34:08 UTC
Build: NetBeans IDE Dev (Build 201501140001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.25-b02, Java(TM) SE Runtime Environment, 1.8.0_25-b17
OS: Linux

User Comments:
kliteyn: just opening a C project gets this error during project scanning by code assistance




Stacktrace: 
java.lang.ClassCastException: org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl cannot be cast to org.netbeans.modules.cnd.modelimpl.content.file.FileComponent
   at org.netbeans.modules.cnd.modelimpl.content.file.FileContent.getFileComponent(FileContent.java:467)
   at org.netbeans.modules.cnd.modelimpl.content.file.FileContent.getFileMacros(FileContent.java:438)
   at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.getFileMacros(FileImpl.java:2260)
   at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.getMacros(FileImpl.java:1841)
   at org.netbeans.modules.cnd.modelimpl.impl.services.SelectImpl.getMacros(SelectImpl.java:104)
   at org.netbeans.modules.cnd.api.model.services.CsmSelect$Default.getMacros(CsmSelect.java:372)
Comment 1 kliteyn 2015-01-14 23:34:10 UTC
Created attachment 151514 [details]
stacktrace