java.lang.ClassCastException: org.eclipse.jdt.internal.core.CompilationUnit cannot be cast to org.scalaide.core.internal.jdt.model.ScalaCompilationUnit

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 Google Groups by Александр Гурьянов, 1 year ago
org.eclipse.jdt.internal.core.CompilationUnit cannot be cast to org.scalaide.core.internal.jdt.model.ScalaCompilationUnit
java.lang.ClassCastException: org.eclipse.jdt.internal.core.CompilationUnit cannot be cast to org.scalaide.core.internal.jdt.model.ScalaCompilationUnit
at org.scalaide.core.internal.ScalaPlugin.unitOfSourceFile$1(ScalaPlugin.scala:158)
at org.scalaide.core.internal.ScalaPlugin.scalaCompilationUnit(ScalaPlugin.scala:165)
at org.scalaide.ui.internal.editor.ScalaCompilationUnitEditor$class.getInteractiveCompilationUnit(ScalaCompilationUnitEditor.scala:100)
at org.scalaide.ui.internal.editor.ScalaSourceFileEditor.getInteractiveCompilationUnit(ScalaSourceFileEditor.scala:62)
at org.scalaide.ui.internal.reconciliation.ScalaReconciler.install(ScalaReconciler.scala:95)
at org.scalaide.ui.internal.editor.ScalaSourceViewerConfiguration$$anonfun$getReconciler$1.apply(ScalaSourceViewerConfiguration.scala:217)
at org.scalaide.ui.internal.editor.ScalaSourceViewerConfiguration$$anonfun$getReconciler$1.apply(ScalaSourceViewerConfiguration.scala:204)
at scala.Option.map(Option.scala:146)
at org.scalaide.ui.internal.editor.ScalaSourceViewerConfiguration.getReconciler(ScalaSourceViewerConfiguration.scala:204)
at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl(AbstractTextEditor.java:3427)
at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl(StatusTextEditor.java:54)
at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.createPartControl(JavaEditor.java:3119)

Users with the same issue

You are the first who have seen this exception.

Write tip

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