java.lang.ClassCastException: [Linterfaces.Relatable; cannot be cast to [Linterfaces.RectanglePlus;

Stack Overflow | SouR Graphics | 9 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

    Casting object arrays in varargs

    Stack Overflow | 9 months ago | SouR Graphics
    java.lang.ClassCastException: [Linterfaces.Relatable; cannot be cast to [Linterfaces.RectanglePlus;

    Root Cause Analysis

    1. java.lang.ClassCastException

      [Linterfaces.Relatable; cannot be cast to [Linterfaces.RectanglePlus;

      at interfaces.RectanglePlus.moveAll()
    2. interfaces
      Main.main
      1. interfaces.RectanglePlus.moveAll(RectanglePlus.java:52)
      2. interfaces.Main.main(Main.java:9)
      2 frames