myandpr commented on PR #7126:
URL: https://github.com/apache/hadoop/pull/7126#issuecomment-2449629255
### Description of differences between commons-cli 1.9.0 and 1.6.0
- compilation error on commons-cli 1.9.0 as follows:
```
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR]
/Users/didi/work/community/hadoop/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-applications-distributedshell/src/main/java/org/apache/hadoop/yarn/applications/distributedshell/Client.java:[589,36]
对getOptionValue的引用不明确
org.apache.commons.cli.CommandLine 中的方法
getOptionValue(java.lang.String,java.lang.String) 和
org.apache.commons.cli.CommandLine 中的方法
getOp(java.lang.String,java.util.function.Supplier<java.lang.String>) 都匹配
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
```
- reason:
https://commons.apache.org/proper/commons-cli/apidocs/org/apache/commons/cli/CommandLine.html
Ambiguous method call in commons-cli 1.9.0. Both
getOptionValue(String,String)in CommandLine and
getOptionValue(String,Supplier<String>)in CommandLine match
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]