When the library (0.17.1) generates list of (binary incompatible or all) changes, it lists also some unchanged properties,
like unchanged class file format or unchanged superclass.
I think unchanged properties should be skipped, in the same way as e.g. unchanged methods are skipped,
so that the problematic changes are highlighted.
Example
Old version:
package com.example;
public class Example {
private Object value;
public Example(Object value) {
this.value = value;
}
public Object getValue() {
return value;
}
}
New version (new method + incompatible change of constructor):
package com.example;
public class Example {
private Object value;
public Example(int value) {
this.value = value;
}
public Object getValue() {
return value;
}
public void setValue(Object value) {
this.value = value;
}
}
When the library (0.17.1) generates list of (binary incompatible or all) changes, it lists also some unchanged properties, like unchanged class file format or unchanged superclass.
I think unchanged properties should be skipped, in the same way as e.g. unchanged methods are skipped, so that the problematic changes are highlighted.
Example
Old version:
New version (new method + incompatible change of constructor):
Reported binary incompatible changes using
java -jar japicmp-0.17.1-jar-with-dependencies.jar -b -o example-old.jar -n example-new.jar
: