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

Stack Overflow | dgrz | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Java Class Casting Exceptions Generics

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