[ 
https://issues.apache.org/jira/browse/HBASE-29549?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Istvan Toth updated HBASE-29549:
--------------------------------
    Labels: jdk21 pull-request-available test  (was: jdk21 
pull-request-available)

> 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
>            Assignee: Istvan Toth
>            Priority: Major
>              Labels: jdk21, pull-request-available, test
>
> {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