You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Sakthi (JIRA)" <ji...@apache.org> on 2019/06/04 05:07:00 UTC

[jira] [Created] (HBASE-22534) TestCellUtil fails when run on JDK11

Sakthi created HBASE-22534:
------------------------------

             Summary: TestCellUtil fails when run on JDK11
                 Key: HBASE-22534
                 URL: https://issues.apache.org/jira/browse/HBASE-22534
             Project: HBase
          Issue Type: Bug
            Reporter: Sakthi
            Assignee: Sakthi


When built on Java 8 and unit tests are run on Java 11, TestCellUtil fails. A sample stacktrace:
{code}
 Tests run: 10, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 2.096 s <<< FAILURE! - in org.apache.hadoop.hbase.TestCellUtil
testGetType(org.apache.hadoop.hbase.TestCellUtil) Time elapsed: 0.544 s <<< ERROR!
org.mockito.exceptions.base.MockitoException:

Cannot call abstract real method on java object!
Calling real methods is only possible when mocking non abstract method.
//correct example:
when(mockOfConcreteClass.nonAbstractMethod()).thenCallRealMethod();
at org.apache.hadoop.hbase.TestCellUtil.testGetType(TestCellUtil.java:543){code}



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