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 - ClassCastException: org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl cannot be cast to org.netbeans.modules.cnd.modelimpl.content.file.FileComponent
Summary: ClassCastException: org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl cann...
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: petrk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-14 23:34 UTC by kliteyn
Modified: 2016-10-31 10:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 214785


Attachments
stacktrace (2.47 KB, text/plain)
2015-01-14 23:34 UTC, kliteyn
Details

Note You need to log in before you can comment on or make changes to this bug.
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