java.lang.ClassCastException: org.eclipse.jdt.internal.core.SourceType cannot be cast to org.eclipse.jdt.core.ICompilationUnit

GitHub | dmazinanian | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    ClassCastException (JEdit-CCFinder)

    GitHub | 9 months ago | dmazinanian
    java.lang.ClassCastException: org.eclipse.jdt.internal.core.SourceType cannot be cast to org.eclipse.jdt.core.ICompilationUnit

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.eclipse.jdt.internal.core.SourceType cannot be cast to org.eclipse.jdt.core.ICompilationUnit

      at gr.uom.java.jdeodorant.refactoring.manipulators.ExtractCloneRefactoring.extractClone()
    2. gr.uom.java
      ExtractCloneRefactoring.checkFinalConditions
      1. gr.uom.java.jdeodorant.refactoring.manipulators.ExtractCloneRefactoring.extractClone(ExtractCloneRefactoring.java:496)
      2. gr.uom.java.jdeodorant.refactoring.manipulators.ExtractCloneRefactoring.apply(ExtractCloneRefactoring.java:327)
      3. gr.uom.java.jdeodorant.refactoring.manipulators.ExtractCloneRefactoring.checkFinalConditions(ExtractCloneRefactoring.java:4484)
      3 frames
    3. ca.concordia.jdeodorant
      Application.start
      1. ca.concordia.jdeodorant.eclipse.commandline.Application.testRefactoring(Application.java:626)
      2. ca.concordia.jdeodorant.eclipse.commandline.Application.start(Application.java:180)
      2 frames
    4. Equinox Container
      EclipseAppHandle.run
      1. org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      1 frame
    5. Eclipse OSGi
      EclipseStarter.run
      1. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
      2. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
      3. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
      4. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
      4 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    7. Equinox
      Main.main
      1. org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
      2. org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
      3. org.eclipse.equinox.launcher.Main.run(Main.java:1519)
      4. org.eclipse.equinox.launcher.Main.main(Main.java:1492)
      4 frames