java-decompiler: extra casts on method calls omitted

(loosely based on https://github.com/JetBrains/intellij-community/pull/217)
This commit is contained in:
Roman Shevchenko
2014-11-04 11:30:23 +01:00
parent 38f1a1a9ee
commit 020f5c404b
9 changed files with 104 additions and 39 deletions

View File

@@ -0,0 +1,18 @@
package pkg;
class TestAmbiguousCall {
void m1(RuntimeException e, String s) {
}
void m1(IllegalArgumentException e, String s) {
}
void test() {
IllegalArgumentException iae = new IllegalArgumentException();
this.m1((RuntimeException)iae, "RE");
this.m1(iae, "IAE");
IllegalArgumentException re = new IllegalArgumentException();
this.m1((RuntimeException)re, "RE");
this.m1((IllegalArgumentException)re, "IAE");
}
}