java.lang.ClassCastException: java.util.Arrays$ArrayList cannot be cast to java.util.ArrayList

Coderanch | Ronald Castillo | 6 years 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

    Why is this happening? (ClassCastException) (Beginning Java forum at Coderanch)

    coderanch.com | 10 months ago
    java.lang.ClassCastException: java.util.Arrays$ArrayList cannot be cast to java.util.ArrayList
  2. 0

    Why is this happening? (ClassCastException)

    Coderanch | 6 years ago | Ronald Castillo
    java.lang.ClassCastException: java.util.Arrays$ArrayList cannot be cast to java.util.ArrayList

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.util.Arrays$ArrayList cannot be cast to java.util.ArrayList

      at net.ronaldcastillo.utils.ArrayUtils.toArrayList()
    2. net.ronaldcastillo.utils
      ArrayUtils.toArrayList
      1. net.ronaldcastillo.utils.ArrayUtils.toArrayList(ArrayUtils.java:20)
      1 frame
    3. net.ronaldcastillo
      UtilsTester.main
      1. net.ronaldcastillo.UtilsTester.main(UtilsTester.java:15)
      1 frame