Details
Description
When built on Java 8 and unit tests are run on Java 11, TestForeignExceptionSerialization fails. A sample stacktrace:
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.546 s <<< FAILURE! - in org.apache.hadoop.hbase.errorhandling.TestForeignExceptionSerialization testRemoteFromLocal(org.apache.hadoop.hbase.errorhandling.TestForeignExceptionSerialization) Time elapsed: 0.084 s <<< FAILURE! org.junit.internal.ArrayComparisonFailure: Local stack trace got corrupted: arrays first differed at element [0]; expected: java.lang.StackTraceElement<org.apache.hadoop.hbase.errorhandling.TestForeignExceptionSerialization.testRemoteFromLocal(TestForeignExceptionSerialization.java:73)> but was: java.lang.StackTraceElement<org.apache.hadoop.hbase.errorhandling.TestForeignExceptionSerialization.testRemoteFromLocal(TestForeignExceptionSerialization.java:73)> at org.apache.hadoop.hbase.errorhandling.TestForeignExceptionSerialization.testRemoteFromLocal(TestForeignExceptionSerialization.java:78) Caused by: java.lang.AssertionError: expected: java.lang.StackTraceElement<org.apache.hadoop.hbase.errorhandling.TestForeignExceptionSerialization.testRemoteFromLocal(TestForeignExceptionSerialization.java:73)> but was: java.lang.StackTraceElement<org.apache.hadoop.hbase.errorhandling.TestForeignExceptionSerialization.testRemoteFromLocal(TestForeignExceptionSerialization.java:73)> at org.apache.hadoop.hbase.errorhandling.TestForeignExceptionSerialization.testRemoteFromLocal(TestForeignExceptionSerialization.java:78)