[ 
https://issues.apache.org/jira/browse/HADOOP-19243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17871065#comment-17871065
 ] 

ASF GitHub Bot commented on HADOOP-19243:
-----------------------------------------

muskan1012 commented on PR #6968:
URL: https://github.com/apache/hadoop/pull/6968#issuecomment-2269056293

   > yeah, I expected mockito upgrades to break things.
   > 
   > ```
   > [INFO] 
------------------------------------------------------------------------
   > [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.10.1:testCompile 
(default-testCompile) on project hadoop-hdfs-rbf: Compilation failure: 
Compilation failure: 
   > [ERROR] 
/home/jenkins/jenkins-home/workspace/hadoop-multibranch_PR-6968/ubuntu-focal/src/hadoop-hdfs-project/hadoop-hdfs-rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/router/TestRouterAdmin.java:[71,44]
 cannot find symbol
   > [ERROR]   symbol:   class FieldSetter
   > [ERROR]   location: package org.mockito.internal.util.reflection
   > [ERROR] 
/home/jenkins/jenkins-home/workspace/hadoop-multibranch_PR-6968/ubuntu-focal/src/hadoop-hdfs-project/hadoop-hdfs-rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/router/TestRouterRpcMultiDestination.java:[27,26]
 cannot find symbol
   > [ERROR]   symbol:   class Matchers
   > [ERROR]   location: package org.mockito
   > [ERROR] 
/home/jenkins/jenkins-home/workspace/hadoop-multibranch_PR-6968/ubuntu-focal/src/hadoop-hdfs-project/hadoop-hdfs-rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/router/TestRouterRpcMultiDestination.java:[27,1]
 static import only from classes and interfaces
   > [ERROR] 
/home/jenkins/jenkins-home/workspace/hadoop-multibranch_PR-6968/ubuntu-focal/src/hadoop-hdfs-project/hadoop-hdfs-rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/router/TestRouterAdmin.java:[124,5]
 cannot find symbol
   > [ERROR]   symbol:   variable FieldSetter
   > [ERROR]   location: class 
org.apache.hadoop.hdfs.server.federation.router.TestRouterAdmin
   > [ERROR] 
/home/jenkins/jenkins-home/workspace/hadoop-multibranch_PR-6968/ubuntu-focal/src/hadoop-hdfs-project/hadoop-hdfs-rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/router/TestRouterAdmin.java:[130,5]
 cannot find symbol
   > [ERROR]   symbol:   variable FieldSetter
   > [ERROR]   location: class 
org.apache.hadoop.hdfs.server.federation.router.TestRouterAdmin
   > [ERROR] 
/home/jenkins/jenkins-home/workspace/hadoop-multibranch_PR-6968/ubuntu-focal/src/hadoop-hdfs-project/hadoop-hdfs-rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/router/TestRouterRpcMultiDestination.java:[430,72]
 cannot find symbol
   > [ERROR]   symbol:   method any()
   > [ERROR]   location: class 
org.apache.hadoop.hdfs.server.federation.router.TestRouterRpcMultiDestination
   > [ERROR] -> [Help 1]
   > ```
   Yes @steveloughran, expected same. Did some changes and pushed those. Will 
check Yetus output and on the basis of that will do the necessary changes.
   
   




> Upgrade Mockito version to 4.11.0
> ---------------------------------
>
>                 Key: HADOOP-19243
>                 URL: https://issues.apache.org/jira/browse/HADOOP-19243
>             Project: Hadoop Common
>          Issue Type: Sub-task
>            Reporter: Muskan Mishra
>            Assignee: Muskan Mishra
>            Priority: Major
>              Labels: pull-request-available
>
> While Compiling test classes with JDK17, faced error related to Mockito:
> *Mockito cannot mock this class.*
> So to make it compatible with jdk17 we have to upgrade the version of 
> mockito-core as well as mockito-inline.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to