siom79 / japicmp

Comparison of two versions of a jar archive
https://siom79.github.io/japicmp
Apache License 2.0
701 stars 107 forks source link

Detect method varargs changes #331

Closed Marcono1234 closed 2 years ago

Marcono1234 commented 2 years ago

Changing a method from varargs to non-varargs is most likely a source incompatible change:

void test(int... args) {
}
// to:
void test(int[] args) {
}

Fails with the following source code:

test(1, 2);

Changing a method from non-varargs to varargs is most likely source compatible (unless I am overlooking some corner case with overloads).

Feedback is appreciated!

siom79 commented 2 years ago

Released with 0.16.0.

Thanks a lot for the contribution.