java.lang.Error

Unresolved compilation problem: Cannot perform instanceof check against type parameter UseT1. Use instead its erasure Object since generic type information will be erased at runtime

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 web1

  • via Unknown by deepashree deval,
  • Stack trace

    • java.lang.Error: Unresolved compilation problem: Cannot perform instanceof check against type parameter UseT1. Use instead its erasure Object since generic type information will be erased at runtime at Generics.GenericClass.addObject(GenericTwoTypes.java:39) at Generics.GenericTwoTypes.main(GenericTwoTypes.java:49)

    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.