java.lang.ClassCastException: org.eclipse.dltk.ast.references.VariableReference cannot be cast to org.eclipse.php.internal.core.compiler.ast.nodes.ArrayCreation

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 zend.com by Unknown author, 1 year ago
org.eclipse.dltk.ast.references.VariableReference cannot be cast to org.eclipse.php.internal.core.compiler.ast.nodes.ArrayCreation
via Eclipse Bugzilla by dkingofpa, 1 year ago
org.eclipse.php.internal.core.compiler.ast.nodes.PHPCallExpression cannot be cast to org.eclipse.php.internal.core.compiler.ast.nodes.ArrayCreation
java.lang.ClassCastException: org.eclipse.dltk.ast.references.VariableReference cannot be cast to org.eclipse.php.internal.core.compiler.ast.nodes.ArrayCreation
at org.eclipse.php.internal.core.typeinference.evaluators.ArrayDeclarationGoalEvaluator.init(ArrayDeclarationGoalEvaluator.java:36)
at org.eclipse.dltk.ti.GoalEngine.evaluateGoal(GoalEngine.java:220)
at org.eclipse.dltk.ti.DefaultTypeInferencer.evaluateType(DefaultTypeInferencer.java:223)
at org.eclipse.dltk.ti.DefaultTypeInferencer.evaluateType(DefaultTypeInferencer.java:213)
at org.eclipse.php.internal.core.typeinference.BindingUtility.getType(BindingUtility.java:162)
at org.eclipse.php.internal.core.typeinference.BindingUtility.getType(BindingUtility.java:188)
at org.eclipse.php.internal.core.typeinference.BindingUtility.getType(BindingUtility.java:156)
at org.eclipse.php.internal.core.ast.nodes.DefaultBindingResolver.getEvaluatedType(DefaultBindingResolver.java:243)
at org.eclipse.php.internal.core.ast.nodes.DefaultBindingResolver.resolveExpressionType(DefaultBindingResolver.java:375)
at org.eclipse.php.internal.core.ast.nodes.Expression.resolveTypeBinding(Expression.java:107)
at org.eclipse.php.internal.ui.editor.highlighter.ModelUtils.getField(ModelUtils.java:27)
at org.eclipse.php.internal.ui.editor.highlighters.DeprecatedHighlighting$DeprecatedApply.visit(DeprecatedHighlighting.java:73)
at org.eclipse.php.internal.core.ast.nodes.FieldAccess.accept0(FieldAccess.java:70)
at org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:275)
at org.eclipse.php.internal.core.ast.nodes.FunctionInvocation.childrenAccept(FunctionInvocation.java:88)
at org.eclipse.php.internal.core.ast.nodes.FunctionInvocation.accept0(FunctionInvocation.java:80)
at org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:275)
at org.eclipse.php.internal.core.ast.nodes.Assignment.childrenAccept(Assignment.java:130)
at org.eclipse.php.internal.core.ast.nodes.Assignment.accept0(Assignment.java:159)
at org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:275)
at org.eclipse.php.internal.core.ast.nodes.ExpressionStatement.childrenAccept(ExpressionStatement.java:73)
at org.eclipse.php.internal.core.ast.nodes.ExpressionStatement.accept0(ExpressionStatement.java:67)
at org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:275)
at org.eclipse.php.internal.core.ast.nodes.Block.childrenAccept(Block.java:97)
at org.eclipse.php.internal.core.ast.nodes.Block.accept0(Block.java:90)
at org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:275)
at org.eclipse.php.internal.core.ast.nodes.ForEachStatement.childrenAccept(ForEachStatement.java:108)
at org.eclipse.php.internal.core.ast.nodes.ForEachStatement.accept0(ForEachStatement.java:97)
at org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:275)
at org.eclipse.php.internal.core.ast.nodes.Block.childrenAccept(Block.java:97)
at org.eclipse.php.internal.core.ast.nodes.Block.accept0(Block.java:90)
at org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:275)
at org.eclipse.php.internal.core.ast.nodes.ForEachStatement.childrenAccept(ForEachStatement.java:108)
at org.eclipse.php.internal.core.ast.nodes.ForEachStatement.accept0(ForEachStatement.java:97)
at org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:275)
at org.eclipse.php.internal.core.ast.nodes.Block.childrenAccept(Block.java:97)
at org.eclipse.php.internal.core.ast.nodes.Block.accept0(Block.java:90)
at org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:275)
at org.eclipse.php.internal.core.ast.nodes.ForEachStatement.childrenAccept(ForEachStatement.java:108)
at org.eclipse.php.internal.core.ast.nodes.ForEachStatement.accept0(ForEachStatement.java:97)
at org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:275)
at org.eclipse.php.internal.core.ast.nodes.Block.childrenAccept(Block.java:97)
at org.eclipse.php.internal.core.ast.nodes.Block.accept0(Block.java:90)
at org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:275)
at org.eclipse.php.internal.core.ast.nodes.FunctionDeclaration.childrenAccept(FunctionDeclaration.java:108)
at org.eclipse.php.internal.core.ast.nodes.FunctionDeclaration.accept0(FunctionDeclaration.java:97)
at org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:275)
at org.eclipse.php.internal.core.ast.nodes.Program.childrenAccept(Program.java:195)
at org.eclipse.php.internal.core.ast.nodes.Program.accept0(Program.java:188)
at org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:275)
at org.eclipse.php.internal.ui.editor.highlighter.AbstractSemanticHighlighting.consumes(AbstractSemanticHighlighting.java:90)
at org.eclipse.php.internal.ui.editor.highlighter.AbstractSemanticHighlighting.consumes(AbstractSemanticHighlighting.java:99)
at org.eclipse.wst.sse.ui.internal.style.SemanticHighlightingReconciler.reconcile(SemanticHighlightingReconciler.java:127)
at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.endProcessing(DocumentRegionProcessor.java:119)

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.