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 254967 - [newcodemodel] ClassCastException: org.netbeans.modules.cnd.modelimpl.csm.core.Unresolved$UnresolvedFile cannot be cast to org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl
Summary: [newcodemodel] ClassCastException: org.netbeans.modules.cnd.modelimpl.csm.cor...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-03 12:15 UTC by Alexander Simon
Modified: 2015-09-08 11:57 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 219654


Attachments
stacktrace (3.92 KB, text/plain)
2015-09-03 12:15 UTC, Alexander Simon
Details
stacktrace (3.92 KB, text/plain)
2015-09-03 12:18 UTC, Alexander Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2015-09-03 12:15:47 UTC
Build: NetBeans IDE Dev (Build 20150903-4aa76c82dd6a)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.80-b11, Java(TM) SE Runtime Environment, 1.7.0_80-b15
OS: SunOS

User Comments:
alexvsimon: open file gthread in pkg-config prohect




Stacktrace: 
java.lang.ClassCastException: org.netbeans.modules.cnd.modelimpl.csm.core.Unresolved$UnresolvedFile cannot be cast to org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl
   at org.netbeans.modules.cnd.modelimpl.repository.OffsetableKey.<init>(OffsetableKey.java:68)
   at org.netbeans.modules.cnd.modelimpl.repository.MacroKey.<init>(MacroKey.java:65)
   at org.netbeans.modules.cnd.modelimpl.repository.KeyUtilities.createMacroKey(KeyUtilities.java:146)
   at org.netbeans.modules.cnd.modelimpl.uid.UIDUtilities$MacroUID.<init>(UIDUtilities.java:687)
   at org.netbeans.modules.cnd.modelimpl.uid.UIDUtilities.createMacroUID(UIDUtilities.java:145)
   at org.netbeans.modules.cnd.modelimpl.csm.MacroImpl.createUID(MacroImpl.java:211)
Comment 1 Alexander Simon 2015-09-03 12:15:49 UTC
Created attachment 155856 [details]
stacktrace
Comment 2 Alexander Simon 2015-09-03 12:18:30 UTC
Created attachment 155857 [details]
stacktrace

close project
Comment 3 Alexander Simon 2015-09-08 11:57:23 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/7018a6ada76e