Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-13932

[JDK 11] Casts to BlockStoragePolicy[] in unit tests raise ClassCastExceptions

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.2.0
    • Component/s: test
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      For example

      java.lang.ClassCastException: class [Ljava.lang.Object; cannot be cast to class [Lorg.apache.hadoop.hdfs.protocol.BlockStoragePolicy; ([Ljava.lang.Object; is in module java.base of loader 'bootstrap'; [Lorg.apache.hadoop.hdfs.protocol.BlockStoragePolicy; is in unnamed module of loader 'app')
      at org.apache.hadoop.hdfs.web.TestWebHDFS.testStoragePolicy(TestWebHDFS.java:1391)

      This is with Java 11+28.

        Attachments

        1. HDFS-13932.patch
          3 kB
          Andrew Purtell
        2. HDFS-13932.patch
          3 kB
          Andrew Purtell

          Issue Links

            Activity

              People

              • Assignee:
                apurtell Andrew Purtell
                Reporter:
                apurtell Andrew Purtell
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: