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 250447 - ClassCastException: org.netbeans.modules.cnd.modelimpl.csm.FieldImpl cannot be cast to org.netbeans.modules.cnd.api.model.CsmFunction
Summary: ClassCastException: org.netbeans.modules.cnd.modelimpl.csm.FieldImpl cannot b...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-16 12:45 UTC by jdavidbakr
Modified: 2015-04-07 03:06 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 215446


Attachments
stacktrace (2.09 KB, text/plain)
2015-02-16 12:45 UTC, jdavidbakr
Details
stacktrace (908 bytes, text/plain)
2015-03-09 17:11 UTC, Exceptions Reporter
Details
stacktrace (2.02 KB, text/plain)
2015-03-19 08:03 UTC, Vladimir Voskresensky
Details
stacktrace (2.02 KB, text/plain)
2015-03-30 15:27 UTC, tbrunhoff
Details
stacktrace (2.02 KB, text/plain)
2015-03-31 00:03 UTC, tbrunhoff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jdavidbakr 2015-02-16 12:45:53 UTC
Build: NetBeans IDE Dev (Build 201502140001)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b15
OS: Mac OS X

User Comments:
jdavidbakr: Switched branches and got this error in a C++ project.




Stacktrace: 
java.lang.ClassCastException: org.netbeans.modules.cnd.modelimpl.csm.FieldImpl cannot be cast to org.netbeans.modules.cnd.api.model.CsmFunction
   at org.netbeans.modules.cnd.highlight.semantic.SemanticEntitiesProvider$FunctionsCodeProvider.getAttributes(SemanticEntitiesProvider.java:310)
   at org.netbeans.modules.cnd.highlight.semantic.SemanticHighlighter.addHighlightsToBag(SemanticHighlighter.java:267)
   at org.netbeans.modules.cnd.highlight.semantic.SemanticHighlighter.updateImpl(SemanticHighlighter.java:237)
   at org.netbeans.modules.cnd.highlight.semantic.SemanticHighlighter.access$500(SemanticHighlighter.java:90)
   at org.netbeans.modules.cnd.highlight.semantic.SemanticHighlighter$TaskContext.run(SemanticHighlighter.java:432)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1425)
Comment 1 jdavidbakr 2015-02-16 12:45:56 UTC
Created attachment 152012 [details]
stacktrace
Comment 2 Exceptions Reporter 2015-03-08 09:44:02 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=215446
Comment 3 Exceptions Reporter 2015-03-09 17:11:07 UTC
Created attachment 152509 [details]
stacktrace

I think I was building my project.
Comment 4 Exceptions Reporter 2015-03-14 13:38:51 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=215446
Comment 5 Vladimir Voskresensky 2015-03-19 08:03:40 UTC
Created attachment 152707 [details]
stacktrace

called completion
Comment 6 tbrunhoff 2015-03-30 15:27:57 UTC
Created attachment 152926 [details]
stacktrace

starting up ide.
Comment 7 tbrunhoff 2015-03-31 00:03:57 UTC
Created attachment 152938 [details]
stacktrace

find/replace
Comment 8 Alexander Simon 2015-04-06 15:59:42 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/5d602f5202f5
Comment 9 Quality Engineering 2015-04-07 03:06:53 UTC
Integrated into 'main-silver', will be available in build *201504070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/5d602f5202f5
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #250447 ClassCastException: org.netbeans.modules.cnd.modelimpl.csm.FieldImpl cannot be cast to org.netbeans.modules.cnd.api.model.CsmFunction