You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Istvan Toth (Jira)" <ji...@apache.org> on 2025/08/26 06:24:00 UTC
[jira] [Updated] (HBASE-29549) Mockito failures in TestServerCall with Java 21
[ https://issues.apache.org/jira/browse/HBASE-29549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Istvan Toth updated HBASE-29549:
--------------------------------
Component/s: test
> Mockito failures in TestServerCall with Java 21
> -----------------------------------------------
>
> Key: HBASE-29549
> URL: https://issues.apache.org/jira/browse/HBASE-29549
> Project: HBase
> Issue Type: Bug
> Components: test
> Reporter: Istvan Toth
> Priority: Major
>
> {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)