java.lang.ClassCastException

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

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web3

  • via Unknown by Unknown author,
  • via GitHub by nhatminhle
    ,
  • Stack trace

    • 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(TypesImpl.java:198) at com.google.java.contract.core.apt.FactoryUtils.getDescriptor(FactoryUtils.java:190) at com.google.java.contract.core.apt.OverlayMap.getContract(OverlayMap.java:325) at com.google.java.contract.core.apt.TypeBuilder.visitExecutable(TypeBuilder.java:434) at com.google.java.contract.core.apt.TypeBuilder.visitExecutable(TypeBuilder.java:64) at org.eclipse.jdt.internal.compiler.apt.model.ExecutableElementImpl.accept(ExecutableElementImpl.java:59)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.