class:org.apache.commons.cli.OptionBuilder
jar:commons-cli-1.2.jar
jdk: 1.8
In Java:
OptionBuilder.withArgName("abc").withDescription("bcd");
Compiled successfully
The same code in Scala:
OptionBuilder.withArgName("abc").withDescription("bcd")
Error:(7, 38) value withDescription is not a member of org.apache.commons.cli.OptionBuilder OptionBuilder.withArgName("abc").withDescription("bcd")