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 271752 - ClassCastException: org.netbeans.modules.cnd.modelimpl.csm.IncludeImpl cannot be cast to org.netbeans.modules.cnd.modelimpl.content.file.FileComponent
Summary: ClassCastException: org.netbeans.modules.cnd.modelimpl.csm.IncludeImpl cannot...
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-03 12:13 UTC by Exceptions Reporter
Modified: 2017-11-03 12:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 230783


Attachments
stacktrace (1.90 KB, text/plain)
2017-11-03 12:13 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2017-11-03 12:13:53 UTC
Build: NetBeans IDE 8.2 (Build 201609270201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.101-b13, Java(TM) SE Runtime Environment, 1.8.0_101-b13
OS: Linux

User Comments:
GUEST: just open project

GUEST: just open project




Stacktrace: 
java.lang.ClassCastException: org.netbeans.modules.cnd.modelimpl.csm.IncludeImpl 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.getFileDeclarations(FileContent.java:421)
   at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.getFileDeclarations(FileImpl.java:2301)
   at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.getDeclarations(FileImpl.java:1797)
   at org.netbeans.modules.cnd.refactoring.hints.ExpressionFinder.findExpressionStatement(ExpressionFinder.java:104)
   at org.netbeans.modules.cnd.refactoring.hints.SuggestionFactoryTask.detectIntroduceVariable(SuggestionFactoryTask.java:366)
Comment 1 Exceptions Reporter 2017-11-03 12:13:56 UTC
Created attachment 165395 [details]
stacktrace