Skip to content

Commit ade4cf4

Browse files
author
Matthias Güdemann
committed
Add regression test
In the original implementation, D.toString would be resolved to java.lang.Object.toString().
1 parent 7680990 commit ade4cf4

File tree

8 files changed

+41
-0
lines changed

8 files changed

+41
-0
lines changed
104 Bytes
Binary file not shown.
104 Bytes
Binary file not shown.
312 Bytes
Binary file not shown.
364 Bytes
Binary file not shown.
452 Bytes
Binary file not shown.
327 Bytes
Binary file not shown.
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
CORE
2+
E.class
3+
--show-goto-functions
4+
IF.*"java::D"
5+
IF.*"java::O"
6+
IF.*"java::C"
+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
interface A {
2+
public int f();
3+
}
4+
interface B {
5+
public int g();
6+
}
7+
8+
class O {
9+
public String toString() {
10+
return "O";
11+
}
12+
}
13+
14+
class D extends O implements A, B {
15+
public int f() {
16+
return 0;
17+
}
18+
public int g() {
19+
return 1;
20+
}
21+
}
22+
23+
class C extends D {
24+
public String toString() {
25+
return "C";
26+
}
27+
}
28+
29+
class E {
30+
C c;
31+
D d;
32+
String f(Object o) {
33+
return o.toString();
34+
}
35+
}

0 commit comments

Comments
 (0)