我想验证2个JAR之间的二进制兼容性.
根据这个答案中的建议,我使用jboss tattletale,但它只能找到缺少的类.
如何找到缺少的方法?有可能吗?
例如
"取决于 - " Foo 课程取决于Bar(像许多其他中产阶级工人一样)
import org.overlyusedclassnames.Bar
public class Foo{
public void someMethod(){
Bar tender = new Bar();
tender.getJohnnyRedLabel();
tender.getJohnnyBlueLabel(); //this method is new in the Bar class
}
}
Run Code Online (Sandbox Code Playgroud)
"编译时间"课程
package org.overlyusedclassnames;
/**
* @Since 1992
* Changes: added blue and gold Johnny Walker labels
*/
public class Bar {
public Drink getJohnnyRedLabel(){
return new JohnyWalkerFactory.get(RedLabel.class);
}
public Drink getJohnnyBlackLabel(){
return new JohnyWalkerFactory.get(BlackLabel.class);
}
public Drink getJohnnyGoldLabel(){
return new …Run Code Online (Sandbox Code Playgroud)