You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Andrew Purtell (JIRA)" <ji...@apache.org> on 2018/09/21 18:19:00 UTC

[jira] [Created] (HDFS-13932) [JDK 11] Casts to BlockStoragePolicy[] in unit tests raise ClassCastExceptions

Andrew Purtell created HDFS-13932:
-------------------------------------

             Summary: [JDK 11] Casts to BlockStoragePolicy[] in unit tests raise ClassCastExceptions 
                 Key: HDFS-13932
                 URL: https://issues.apache.org/jira/browse/HDFS-13932
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: test
            Reporter: Andrew Purtell


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. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org