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

zend.com | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Zend Forums • View topic - Error: Processing Dirty Regions

    zend.com | 6 months ago
    java.lang.ClassCastException: org.eclipse.dltk.ast.references.VariableReference cannot be cast to org.eclipse.php.internal.core.compiler.ast.nodes.ArrayCreation
  2. 0

    Processing Dirty Regions - PHPCallExpression to ArrayCreation ClassCastException

    Eclipse Bugzilla | 6 years ago | dkingofpa
    java.lang.ClassCastException: org.eclipse.php.internal.core.compiler.ast.nodes.PHPCallExpression cannot be cast to org.eclipse.php.internal.core.compiler.ast.nodes.ArrayCreation

    Root Cause Analysis

    1. 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()
    2. org.eclipse.php
      ArrayDeclarationGoalEvaluator.init
      1. org.eclipse.php.internal.core.typeinference.evaluators.ArrayDeclarationGoalEvaluator.init(ArrayDeclarationGoalEvaluator.java:36)
      1 frame
    3. org.eclipse.dltk
      DefaultTypeInferencer.evaluateType
      1. org.eclipse.dltk.ti.GoalEngine.evaluateGoal(GoalEngine.java:220)
      2. org.eclipse.dltk.ti.DefaultTypeInferencer.evaluateType(DefaultTypeInferencer.java:223)
      3. org.eclipse.dltk.ti.DefaultTypeInferencer.evaluateType(DefaultTypeInferencer.java:213)
      3 frames
    4. org.eclipse.php
      AbstractSemanticHighlighting.consumes
      1. org.eclipse.php.internal.core.typeinference.BindingUtility.getType(BindingUtility.java:162)
      2. org.eclipse.php.internal.core.typeinference.BindingUtility.getType(BindingUtility.java:188)
      3. org.eclipse.php.internal.core.typeinference.BindingUtility.getType(BindingUtility.java:156)
      4. org.eclipse.php.internal.core.ast.nodes.DefaultBindingResolver.getEvaluatedType(DefaultBindingResolver.java:243)
      5. org.eclipse.php.internal.core.ast.nodes.DefaultBindingResolver.resolveExpressionType(DefaultBindingResolver.java:375)
      6. org.eclipse.php.internal.core.ast.nodes.Expression.resolveTypeBinding(Expression.java:107)
      7. org.eclipse.php.internal.ui.editor.highlighter.ModelUtils.getField(ModelUtils.java:27)
      8. org.eclipse.php.internal.ui.editor.highlighters.DeprecatedHighlighting$DeprecatedApply.visit(DeprecatedHighlighting.java:73)
      9. org.eclipse.php.internal.core.ast.nodes.FieldAccess.accept0(FieldAccess.java:70)
      10. org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:275)
      11. org.eclipse.php.internal.core.ast.nodes.FunctionInvocation.childrenAccept(FunctionInvocation.java:88)
      12. org.eclipse.php.internal.core.ast.nodes.FunctionInvocation.accept0(FunctionInvocation.java:80)
      13. org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:275)
      14. org.eclipse.php.internal.core.ast.nodes.Assignment.childrenAccept(Assignment.java:130)
      15. org.eclipse.php.internal.core.ast.nodes.Assignment.accept0(Assignment.java:159)
      16. org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:275)
      17. org.eclipse.php.internal.core.ast.nodes.ExpressionStatement.childrenAccept(ExpressionStatement.java:73)
      18. org.eclipse.php.internal.core.ast.nodes.ExpressionStatement.accept0(ExpressionStatement.java:67)
      19. org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:275)
      20. org.eclipse.php.internal.core.ast.nodes.Block.childrenAccept(Block.java:97)
      21. org.eclipse.php.internal.core.ast.nodes.Block.accept0(Block.java:90)
      22. org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:275)
      23. org.eclipse.php.internal.core.ast.nodes.ForEachStatement.childrenAccept(ForEachStatement.java:108)
      24. org.eclipse.php.internal.core.ast.nodes.ForEachStatement.accept0(ForEachStatement.java:97)
      25. org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:275)
      26. org.eclipse.php.internal.core.ast.nodes.Block.childrenAccept(Block.java:97)
      27. org.eclipse.php.internal.core.ast.nodes.Block.accept0(Block.java:90)
      28. org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:275)
      29. org.eclipse.php.internal.core.ast.nodes.ForEachStatement.childrenAccept(ForEachStatement.java:108)
      30. org.eclipse.php.internal.core.ast.nodes.ForEachStatement.accept0(ForEachStatement.java:97)
      31. org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:275)
      32. org.eclipse.php.internal.core.ast.nodes.Block.childrenAccept(Block.java:97)
      33. org.eclipse.php.internal.core.ast.nodes.Block.accept0(Block.java:90)
      34. org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:275)
      35. org.eclipse.php.internal.core.ast.nodes.ForEachStatement.childrenAccept(ForEachStatement.java:108)
      36. org.eclipse.php.internal.core.ast.nodes.ForEachStatement.accept0(ForEachStatement.java:97)
      37. org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:275)
      38. org.eclipse.php.internal.core.ast.nodes.Block.childrenAccept(Block.java:97)
      39. org.eclipse.php.internal.core.ast.nodes.Block.accept0(Block.java:90)
      40. org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:275)
      41. org.eclipse.php.internal.core.ast.nodes.FunctionDeclaration.childrenAccept(FunctionDeclaration.java:108)
      42. org.eclipse.php.internal.core.ast.nodes.FunctionDeclaration.accept0(FunctionDeclaration.java:97)
      43. org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:275)
      44. org.eclipse.php.internal.core.ast.nodes.Program.childrenAccept(Program.java:195)
      45. org.eclipse.php.internal.core.ast.nodes.Program.accept0(Program.java:188)
      46. org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNode.java:275)
      47. org.eclipse.php.internal.ui.editor.highlighter.AbstractSemanticHighlighting.consumes(AbstractSemanticHighlighting.java:90)
      48. org.eclipse.php.internal.ui.editor.highlighter.AbstractSemanticHighlighting.consumes(AbstractSemanticHighlighting.java:99)
      48 frames
    5. org.eclipse.wst
      SemanticHighlightingReconciler.reconcile
      1. org.eclipse.wst.sse.ui.internal.style.SemanticHighlightingReconciler.reconcile(SemanticHighlightingReconciler.java:127)
      1 frame
    6. Structured Source Editor
      DirtyRegionProcessor.run
      1. org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.endProcessing(DocumentRegionProcessor.java:119)
      2. org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor.run(DirtyRegionProcessor.java:682)
      2 frames
    7. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      1 frame