Skip to content

Commit 366afc5

Browse files
committed
Add corrupted signature test
1 parent 2e50dff commit 366afc5

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

test/org/jetbrains/java/decompiler/SingleClassesTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,7 @@ private void registerDefault() {
731731
register(JAVA_16, "TestSwitchExpressionReturnType");
732732
register(JAVA_8, "TestGenericMapping");
733733

734+
registerRaw(CUSTOM, "TestCorruptedSignatures").setExpectedFileName("Signatures.java");
734735
}
735736

736737
private void registerEntireClassPath() {
875 Bytes
Binary file not shown.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import java.util.ArrayList;
2+
import java.util.List;
3+
import java.util.Map;
4+
5+
abstract class Signatures implements Map<String, String> {
6+
Map<String, String> field = new ArrayList();
7+
8+
void method(Map<String, String> o) {
9+
}// 9
10+
}
11+
12+
class 'Signatures' {
13+
method 'method (Ljava/util/List;)V' {
14+
0 8
15+
}
16+
}
17+
18+
Lines mapping:
19+
9 <-> 9

0 commit comments

Comments
 (0)