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 175297 - java.lang.ClassCastException: org.netbeans.modules.cnd.modelimpl.csm.FunctionImpl cannot be cast to org.netbeans.modules.cnd.api.model.CsmFriend
Summary: java.lang.ClassCastException: org.netbeans.modules.cnd.modelimpl.csm.Function...
Status: RESOLVED DUPLICATE of bug 175305
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: nnnnnk
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-23 14:51 UTC by Vladimir Voskresensky
Modified: 2009-10-23 16:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2009-10-23 14:51:42 UTC
java.lang.ClassCastException: org.netbeans.modules.cnd.modelimpl.csm.FunctionImpl cannot be cast to
org.netbeans.modules.cnd.api.model.CsmFriend
        at org.netbeans.modules.cnd.modelimpl.impl.services.FriendResolverImpl.isFriend(FriendResolverImpl.java:99)
        at
org.netbeans.modules.cnd.api.model.services.CsmInheritanceUtilities.getContextVisibilityInfo(CsmInheritanceUtilities.java:296)
        at
org.netbeans.modules.cnd.api.model.services.CsmInheritanceUtilities.getContextVisibility(CsmInheritanceUtilities.java:274)
        at
org.netbeans.modules.cnd.api.model.services.CsmInheritanceUtilities.getContextVisibility(CsmInheritanceUtilities.java:271)
        at
org.netbeans.modules.cnd.completion.csm.CsmProjectContentResolver.getClassMembers(CsmProjectContentResolver.java:1028)
        at
org.netbeans.modules.cnd.completion.csm.CsmProjectContentResolver.getClassMembers(CsmProjectContentResolver.java:1003)
        at org.netbeans.modules.cnd.completion.csm.CsmProjectContentResolver.getFields(CsmProjectContentResolver.java:969)
        at org.netbeans.modules.cnd.completion.csm.CompletionResolverImpl.resolveContext(CompletionResolverImpl.java:392)
        at org.netbeans.modules.cnd.completion.csm.CompletionResolverImpl.resolveContext(CompletionResolverImpl.java:246)
        at org.netbeans.modules.cnd.completion.csm.CompletionResolverImpl.resolve(CompletionResolverImpl.java:197)
        at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$Context.resolve(CsmCompletionQuery.java:774)
        at
org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$Context.resolveItem(CsmCompletionQuery.java:1199)
        at
org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery$Context.resolveExp(CsmCompletionQuery.java:1124)
        at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.getResult(CsmCompletionQuery.java:317)
        at org.netbeans.modules.cnd.completion.cplusplus.ext.CsmCompletionQuery.query(CsmCompletionQuery.java:298)
        at
org.netbeans.modules.cnd.completion.csm.CompletionUtilities.findItemsReferencedAtCaretPos(CompletionUtilities.java:149)
        at org.netbeans.modules.cnd.completion.impl.xref.ReferencesSupport.findDeclaration(ReferencesSupport.java:373)
        at org.netbeans.modules.cnd.completion.impl.xref.ReferencesSupport.findDeclaration(ReferencesSupport.java:329)
        at org.netbeans.modules.cnd.completion.impl.xref.ReferencesSupport.findReferencedObject(ReferencesSupport.java:222)
        at org.netbeans.modules.cnd.completion.impl.xref.ReferenceImpl.getReferencedObject(ReferenceImpl.java:76)
        at org.netbeans.modules.cnd.highlight.semantic.ModelUtils$FieldReferenceCollector.visit(ModelUtils.java:131)
        at org.netbeans.modules.cnd.highlight.semantic.SemanticHighlighter$2.visit(SemanticHighlighter.java:235)
        at org.netbeans.modules.cnd.completion.impl.xref.FileReferencesImpl._accept(FileReferencesImpl.java:141)
        at org.netbeans.modules.cnd.completion.impl.xref.FileReferencesImpl.accept(FileReferencesImpl.java:98)
        at org.netbeans.modules.cnd.highlight.semantic.SemanticHighlighter.update(SemanticHighlighter.java:228)
        at org.netbeans.modules.cnd.highlight.semantic.SemanticHighlighter.update(SemanticHighlighter.java:157)
        at org.netbeans.modules.cnd.highlight.semantic.SemanticHighlighter.run(SemanticHighlighter.java:289)
        at org.netbeans.modules.cnd.model.tasks.CsmFileTaskFactory$5.run(CsmFileTaskFactory.java:452)
        at org.netbeans.modules.cnd.model.tasks.CsmFileTaskFactory$CsmSafeRunnable.run(CsmFileTaskFactory.java:468)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1084)
Comment 1 Vladimir Voskresensky 2009-10-23 16:11:22 UTC

*** This issue has been marked as a duplicate of 175305 ***