java.lang.ClassCastException: org.eclipse.jdt.internal.compiler.apt.model.NoTypeImpl cannot be cast to org.eclipse.jdt.internal.compiler.apt.model.TypeMirrorImpl

GitHub | nhatminhle | 3 years 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

    GitHub comment 23#52436230

    GitHub | 3 years ago | nhatminhle
    java.lang.ClassCastException: org.eclipse.jdt.internal.compiler.apt.model.NoTypeImpl cannot be cast to org.eclipse.jdt.internal.compiler.apt.model.TypeMirrorImpl
  2. 0

    Setting up Contracts for Java in Eclipse | Geschreibsel

    wordpress.com | 9 months ago
    java.lang.ClassCastException: org.eclipse.jdt.internal.compiler.apt.model.NoTypeImpl cannot be cast to org.eclipse.jdt.internal.compiler.apt.model.TypeMirrorImpl
  3. 0

    Types.erasure() in Eclipse JDT gives a ClassCastException on NoType return type

    GitHub | 3 years ago | nhatminhle
    java.lang.ClassCastException: org.eclipse.jdt.internal.compiler.apt.model.NoTypeImpl cannot be cast to org.eclipse.jdt.internal.compiler.apt.model.TypeMirrorImpl
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ClassCastException in ReconcileStepForValidator

    Eclipse Bugzilla | 1 decade ago | rrodseth
    java.lang.ClassCastException: java.util.ArrayList at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.createAnnotations(ReconcileStepForValidator.java:86) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.validate(ReconcileStepForValidator.java:234) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ReconcileStepForValidator.reconcileModel(ReconcileStepForValidator.java:201) at org.eclipse.jface.text.reconciler.AbstractReconcileStep.reconcile(AbstractReconcileStep.java:96) at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.reconcile(ValidatorStrategy.java:173) at org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionProcessor.process(StructuredRegionProcessor.java:144) at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor.run(DirtyRegionProcessor.java:423)

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.eclipse.jdt.internal.compiler.apt.model.NoTypeImpl cannot be cast to org.eclipse.jdt.internal.compiler.apt.model.TypeMirrorImpl

      at org.eclipse.jdt.internal.compiler.apt.model.TypesImpl.erasure()
    2. Eclipse ECJ
      TypesImpl.erasure
      1. org.eclipse.jdt.internal.compiler.apt.model.TypesImpl.erasure(TypesImpl.java:198)
      1 frame
    3. Cofoja
      TypeBuilder.visitExecutable
      1. com.google.java.contract.core.apt.AbstractTypeBuilder.createContractModel(Unknown Source)
      2. com.google.java.contract.core.apt.TypeBuilder.visitAnnotation(Unknown Source)
      3. com.google.java.contract.core.apt.AbstractTypeBuilder.scanAnnotations(Unknown Source)
      4. com.google.java.contract.core.apt.TypeBuilder.visitExecutable(Unknown Source)
      5. com.google.java.contract.core.apt.TypeBuilder.visitExecutable(Unknown Source)
      5 frames
    4. Eclipse ECJ
      ExecutableElementImpl.accept
      1. org.eclipse.jdt.internal.compiler.apt.model.ExecutableElementImpl.accept(ExecutableElementImpl.java:59)
      1 frame
    5. Java RT
      ElementScanner6.scan
      1. javax.lang.model.util.ElementScanner6.scan(ElementScanner6.java:122)
      2. javax.lang.model.util.ElementScanner6.scan(ElementScanner6.java:112)
      2 frames
    6. Cofoja
      TypeBuilder.visitType
      1. com.google.java.contract.core.apt.TypeBuilder.visitType(Unknown Source)
      2. com.google.java.contract.core.apt.TypeBuilder.visitType(Unknown Source)
      2 frames
    7. Eclipse ECJ
      TypeElementImpl.accept
      1. org.eclipse.jdt.internal.compiler.apt.model.TypeElementImpl.accept(TypeElementImpl.java:61)
      1 frame
    8. Cofoja
      AnnotationProcessor.process
      1. com.google.java.contract.core.apt.TypeFactory.createType(Unknown Source)
      2. com.google.java.contract.core.apt.AnnotationProcessor.createTypes(Unknown Source)
      3. com.google.java.contract.core.apt.AnnotationProcessor.process(Unknown Source)
      3 frames
    9. Eclipse ECJ
      BaseAnnotationProcessorManager.processAnnotations
      1. org.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.handleProcessor(RoundDispatcher.java:139)
      2. org.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.round(RoundDispatcher.java:121)
      3. org.eclipse.jdt.internal.compiler.apt.dispatch.BaseAnnotationProcessorManager.processAnnotations(BaseAnnotationProcessorManager.java:159)
      3 frames
    10. org.eclipse.jdt
      IdeAnnotationProcessorManager.processAnnotations
      1. org.eclipse.jdt.internal.apt.pluggable.core.dispatch.IdeAnnotationProcessorManager.processAnnotations(IdeAnnotationProcessorManager.java:134)
      1 frame
    11. JDT Core
      JavaBuilder.build
      1. org.eclipse.jdt.internal.compiler.Compiler.processAnnotations(Compiler.java:809)
      2. org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:428)
      3. org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:364)
      4. org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.compile(IncrementalImageBuilder.java:321)
      5. org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:301)
      6. org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.build(IncrementalImageBuilder.java:134)
      7. org.eclipse.jdt.internal.core.builder.JavaBuilder.buildDeltas(JavaBuilder.java:265)
      8. org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:193)
      8 frames
    12. Core Resource Management
      BuildManager$2.run
      1. org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:629)
      1 frame
    13. Eclipse Core
      SafeRunner.run
      1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      1 frame
    14. Core Resource Management
      BuildManager$1.run
      1. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172)
      2. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:203)
      3. org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255)
      3 frames
    15. Eclipse Core
      SafeRunner.run
      1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      1 frame
    16. Core Resource Management
      AutoBuildJob.run
      1. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258)
      2. org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:311)
      3. org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343)
      4. org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)
      5. org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242)
      5 frames
    17. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
      1 frame