Istvan Toth created HBASE-29549:
-----------------------------------

             Summary: Mockito failures in TestServerCall with Java 21
                 Key: HBASE-29549
                 URL: https://issues.apache.org/jira/browse/HBASE-29549
             Project: HBase
          Issue Type: Bug
            Reporter: Istvan Toth


{noformat}
[ERROR] 
org.apache.hadoop.hbase.ipc.TestServerCall.testSetResponseWithDoubleIOException 
-- Time elapsed: 0.680 s <<< ERROR!
org.mockito.exceptions.base.MockitoException: Cannot mock/spy class 
java.net.InetAddress
Mockito cannot mock/spy because :
 - sealed class
        at 
org.apache.hadoop.hbase.ipc.TestServerCall.setUp(TestServerCall.java:83)
        at 
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
        at java.base/java.lang.reflect.Method.invoke(Method.java:580)
        at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
{noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to