java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [LPriorityQueueCustom$Task;

Stack Overflow | dgrz | 6 months 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

    Java Class Casting Exceptions Generics

    Stack Overflow | 6 months ago | dgrz
    java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [LPriorityQueueCustom$Task;

    Root Cause Analysis

    1. java.lang.ClassCastException

      [Ljava.lang.Object; cannot be cast to [LPriorityQueueCustom$Task;

      at PriorityQueueCustom.<init>()
    2. Unknown
      PriorityQueueTester.main
      1. PriorityQueueCustom.<init>(PriorityQueueCustom.java:28)
      2. PriorityQueueTester.main(PriorityQueueTester.java:5)
      2 frames