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

Stack Overflow | dgrz | 8 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Java Class Casting Exceptions Generics

    Stack Overflow | 8 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