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 270732

Summary: ClassCastException: org.netbeans.modules.cnd.modelimpl.csm.MacroImpl cannot be cast to org.netbeans.modules.cnd.modelimpl.content.file.FileComponent
Product: cnd Reporter: PolesApart
Component: Code ModelAssignee: Alexander Simon <alexvsimon>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 229254
Attachments: stacktrace

Description PolesApart 2017-05-24 20:22:50 UTC
Build: NetBeans IDE 8.2 (Build 201609300101)
VM: OpenJDK 64-Bit Server VM, 25.131-b11, OpenJDK Runtime Environment, 1.8.0_131-8u131-b11-1-b11
OS: Linux

User Comments:
PolesApart: Attempted to report other exception




Stacktrace: 
java.lang.ClassCastException: org.netbeans.modules.cnd.modelimpl.csm.MacroImpl cannot be cast to org.netbeans.modules.cnd.modelimpl.content.file.FileComponent
   at org.netbeans.modules.cnd.modelimpl.content.file.FileContent.getFileComponent(FileContent.java:464)
   at org.netbeans.modules.cnd.modelimpl.content.file.FileContent.getFileIncludes(FileContent.java:440)
   at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.getFileIncludes(FileImpl.java:2314)
   at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.getIncludes(FileImpl.java:1746)
   at org.netbeans.modules.cnd.completion.cplusplus.hyperlink.CsmIncludeHyperlinkProvider.getFirstBrokenIncludeInsideIncludedFiles(CsmIncludeHyperlinkProvider.java:411)
   at org.netbeans.modules.cnd.completion.cplusplus.hyperlink.CsmIncludeHyperlinkProvider.getFirstBrokenIncludeInsideIncludedFiles(CsmIncludeHyperlinkProvider.java:414)
Comment 1 PolesApart 2017-05-24 20:22:52 UTC
Created attachment 164399 [details]
stacktrace