java.lang.ClassCastException: com.jetbrains.cidr.lang.symbols.cpp.OCDeclaratorSymbol cannot be cast to com.jetbrains.cidr.lang.symbols.cpp.OCFunctionSymbol

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via YouTrack by Unknown author, 1 year ago
com.jetbrains.cidr.lang.symbols.cpp.OCDeclaratorSymbol cannot be cast to com.jetbrains.cidr.lang.symbols.cpp.OCFunctionSymbol
java.lang.ClassCastException: com.jetbrains.cidr.lang.symbols.cpp.OCDeclaratorSymbol cannot be cast to com.jetbrains.cidr.lang.symbols.cpp.OCFunctionSymbol
at com.jetbrains.cidr.lang.resolve.references.OCOperatorReference.resolveOperator(OCOperatorReference.java:265)
at com.jetbrains.cidr.lang.symbols.expression.OCCallExpressionSymbol.getResolvedType(OCCallExpressionSymbol.java:98)
at com.jetbrains.cidr.lang.resolve.OCArgumentsList.expandVariadicExpressions(OCArgumentsList.java:93)
at com.jetbrains.cidr.lang.symbols.expression.OCCallExpressionSymbol.a(OCCallExpressionSymbol.java:108)
at com.jetbrains.cidr.lang.symbols.expression.OCCallExpressionSymbol.resolveOverloads(OCCallExpressionSymbol.java:124)
at com.jetbrains.cidr.lang.symbols.expression.OCReferenceExpressionSymbol.resolveToSymbol(OCReferenceExpressionSymbol.java:68)
at com.jetbrains.cidr.lang.symbols.expression.OCCallExpressionSymbol.getResolvedType(OCCallExpressionSymbol.java:75)
at com.jetbrains.cidr.lang.util.OCExpressionEvaluator$ValueEvaluator.evalSizeof(OCExpressionEvaluator.java:730)
at com.jetbrains.cidr.lang.symbols.expression.OCSizeofExpressionSymbol.evaluate(OCSizeofExpressionSymbol.java:69)
at com.jetbrains.cidr.lang.util.OCExpressionEvaluator.a(OCExpressionEvaluator.java:400)
at com.jetbrains.cidr.lang.util.OCExpressionEvaluator.evaluate(OCExpressionEvaluator.java:381)
at com.jetbrains.cidr.lang.util.OCExpressionEvaluator$ValueEvaluator.evalReference(OCExpressionEvaluator.java:723)
at com.jetbrains.cidr.lang.symbols.expression.OCReferenceExpressionSymbol.evaluate(OCReferenceExpressionSymbol.java:76)
at com.jetbrains.cidr.lang.util.OCExpressionEvaluator.evaluate(OCExpressionEvaluator.java:202)
at com.jetbrains.cidr.lang.symbols.expression.OCExpressionSymbol.evaluateToTypeArgument(OCExpressionSymbol.java:54)
at com.jetbrains.cidr.lang.symbols.expression.OCReferenceExpressionSymbol.evaluateToTypeArgument(OCReferenceExpressionSymbol.java:82)
at com.jetbrains.cidr.lang.types.visitors.OCSimpleTypeSubstitution.resolveTypeArgument(OCSimpleTypeSubstitution.java:427)
at com.jetbrains.cidr.lang.types.visitors.OCSimpleTypeSubstitution.resolveTypeArgument(OCSimpleTypeSubstitution.java:411)
at com.jetbrains.cidr.lang.types.visitors.OCSimpleTypeSubstitution$2.fun(OCSimpleTypeSubstitution.java:115)
at com.jetbrains.cidr.lang.types.visitors.OCSimpleTypeSubstitution$2.fun(OCSimpleTypeSubstitution.java:112)
at com.jetbrains.cidr.lang.types.visitors.OCSimpleTypeSubstitution.resolveTemplateSpecialization(OCSimpleTypeSubstitution.java:112)
at com.jetbrains.cidr.lang.symbols.OCSymbolReference.resolveTemplateSpecialization(OCSymbolReference.java:719)
at com.jetbrains.cidr.lang.symbols.OCSymbolReference.doResolve(OCSymbolReference.java:655)
at com.jetbrains.cidr.lang.symbols.OCSymbolReference.resolveToSymbols(OCSymbolReference.java:537)
at com.jetbrains.cidr.lang.symbols.OCResolveContext.doResolveToSymbols(OCResolveContext.java:114)
at com.jetbrains.cidr.lang.symbols.OCResolveContext.resolveToSymbols(OCResolveContext.java:130)
at com.jetbrains.cidr.lang.symbols.OCSymbolReference.doResolve(OCSymbolReference.java:631)
at com.jetbrains.cidr.lang.symbols.OCSymbolReference.resolveToSymbols(OCSymbolReference.java:537)
at com.jetbrains.cidr.lang.symbols.OCResolveContext.doResolveToSymbols(OCResolveContext.java:114)
at com.jetbrains.cidr.lang.symbols.OCResolveContext.resolveToSymbols(OCResolveContext.java:130)
at com.jetbrains.cidr.lang.types.visitors.OCTypeResolveVisitor.a(OCTypeResolveVisitor.java:375)
at com.jetbrains.cidr.lang.types.visitors.OCTypeResolveVisitor.a(OCTypeResolveVisitor.java:288)
at com.jetbrains.cidr.lang.types.visitors.OCTypeResolveVisitor.getCachedOrResolve(OCTypeResolveVisitor.java:170)
at com.jetbrains.cidr.lang.types.visitors.OCTypeResolveVisitor.visitReferenceType(OCTypeResolveVisitor.java:132)
at com.jetbrains.cidr.lang.types.visitors.OCTypeResolveVisitor.visitReferenceType(OCTypeResolveVisitor.java:44)
at com.jetbrains.cidr.lang.types.OCReferenceType.accept(OCReferenceType.java:55)
at com.jetbrains.cidr.lang.types.visitors.OCTypeResolveVisitor$Resolver.process(OCTypeResolveVisitor.java:452)
at com.jetbrains.cidr.lang.types.visitors.OCTypeResolveVisitor$Resolver.process(OCTypeResolveVisitor.java:387)
at com.jetbrains.cidr.lang.types.visitors.OCTypeResolveVisitor.a(OCTypeResolveVisitor.java:381)
at com.jetbrains.cidr.lang.types.visitors.OCTypeResolveVisitor.a(OCTypeResolveVisitor.java:288)
at com.jetbrains.cidr.lang.types.visitors.OCTypeResolveVisitor.getCachedOrResolve(OCTypeResolveVisitor.java:170)
at com.jetbrains.cidr.lang.types.visitors.OCTypeResolveVisitor.visitReferenceType(OCTypeResolveVisitor.java:132)
at com.jetbrains.cidr.lang.types.visitors.OCTypeResolveVisitor.visitReferenceType(OCTypeResolveVisitor.java:44)
at com.jetbrains.cidr.lang.types.OCReferenceType.accept(OCReferenceType.java:55)
at com.jetbrains.cidr.lang.types.OCType.transformType(OCType.java:585)
at com.jetbrains.cidr.lang.types.visitors.OCSimpleTypeSubstitution.resolveTypeArgument(OCSimpleTypeSubstitution.java:424)
at com.jetbrains.cidr.lang.types.visitors.OCSimpleTypeSubstitution.resolveTypeArgument(OCSimpleTypeSubstitution.java:411)
at com.jetbrains.cidr.lang.types.visitors.OCSimpleTypeSubstitution$2.fun(OCSimpleTypeSubstitution.java:115)
at com.jetbrains.cidr.lang.types.visitors.OCSimpleTypeSubstitution$2.fun(OCSimpleTypeSubstitution.java:112)
at com.jetbrains.cidr.lang.types.visitors.OCSimpleTypeSubstitution.resolveTemplateSpecialization(OCSimpleTypeSubstitution.java:112)
at com.jetbrains.cidr.lang.symbols.OCSymbolReference.resolveTemplateSpecialization(OCSymbolReference.java:719)
at com.jetbrains.cidr.lang.symbols.OCSymbolReference.doResolve(OCSymbolReference.java:655)
at com.jetbrains.cidr.lang.symbols.OCSymbolReference.resolveToSymbols(OCSymbolReference.java:537)
at com.jetbrains.cidr.lang.symbols.OCSymbolReference.resolveToSymbols(OCSymbolReference.java:171)
at com.jetbrains.cidr.lang.symbols.OCSymbolReference.processPossibleSymbols(OCSymbolReference.java:135)
at com.jetbrains.cidr.lang.psi.impl.OCReferenceElementImpl.a(OCReferenceElementImpl.java:257)
at com.jetbrains.cidr.lang.psi.impl.OCReferenceElementImpl.resolveToSymbol(OCReferenceElementImpl.java:382)
at com.jetbrains.cidr.lang.psi.impl.OCReferenceElementImpl$MyResolver.resolve(OCReferenceElementImpl.java:158)
at com.jetbrains.cidr.lang.psi.impl.OCReferenceElementImpl$MyResolver.resolve(OCReferenceElementImpl.java:148)
at com.intellij.psi.impl.source.resolve.ResolveCache.a(ResolveCache.java:144)
at com.jetbrains.cidr.lang.psi.impl.OCReferenceElementImpl.resolveToSymbol(OCReferenceElementImpl.java:175)
at com.jetbrains.cidr.lang.psi.impl.OCReferenceElementImpl.resolveToSymbol(OCReferenceElementImpl.java:169)
at com.jetbrains.cidr.lang.daemon.OCResolveAnnotator.a(OCResolveAnnotator.java:96)
at com.jetbrains.cidr.lang.daemon.OCResolveAnnotator.visitReferenceElement(OCResolveAnnotator.java:281)
at com.jetbrains.cidr.lang.psi.impl.OCReferenceElementImpl.accept(OCReferenceElementImpl.java:78)
at com.jetbrains.cidr.lang.psi.impl.OCElementBase.accept(OCElementBase.java:75)
at com.jetbrains.cidr.lang.daemon.OCAnnotator.annotate(OCAnnotator.java:130)
at com.jetbrains.cidr.lang.daemon.OCAnnotator.annotate(OCAnnotator.java:111)
at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.a(DefaultHighlightVisitor.java:139)
at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.visit(DefaultHighlightVisitor.java:102)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:334)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:269)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:293)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:296)
at com.intellij.codeInsight.daemon.RainbowVisitor.analyze(RainbowVisitor.java:58)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:296)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:296)
at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.analyze(DefaultHighlightVisitor.java:86)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:296)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:268)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectInformationWithProgress(GeneralHighlightingPass.java:207)
at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:82)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:70)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.b(PassExecutorService.java:421)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1036)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.a(PassExecutorService.java:414)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:568)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:519)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.c(PassExecutorService.java:413)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:393)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.