Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
IotaBread committed Jan 21, 2024
1 parent 62cfd6b commit eda1e66
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 79 deletions.
2 changes: 0 additions & 2 deletions test/org/jetbrains/java/decompiler/SingleClassesTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -694,8 +694,6 @@ private void registerDefault() {
register(JAVA_21_PREVIEW, "TestRawProcessor");
register(JAVA_21_PREVIEW, "TestFmtProcessor");
register(JAVA_21_PREVIEW, "TestCustomProcessor");

// TODO: import for LambdaMetafactory
register(JASM, "TestMissingLambdaBody");
}

Expand Down
153 changes: 76 additions & 77 deletions testData/results/pkg/TestMissingLambdaBody.dec
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package pkg;

import java.lang.invoke.LambdaMetafactory;
import java.util.function.Consumer;

public class TestMissingLambdaBody {
Expand All @@ -23,95 +22,95 @@ public class TestMissingLambdaBody {

class 'pkg/TestMissingLambdaBody' {
method 'init ()V' {
0 7
7 7
8 7
9 7
a 10
0 6
7 6
8 6
9 6
a 9
}

method 'lambda$init$0 (Ljava/lang/Integer;)V' {
0 8
1 8
2 8
3 8
4 8
5 8
6 8
7 8
9 9
0 7
1 7
2 7
3 7
4 7
5 7
6 7
7 7
9 8
}

method 'visit (Ljava/util/function/Consumer;)V' {
0 13
1 13
2 13
3 13
4 13
5 13
6 13
7 13
8 13
9 13
a 13
b 13
c 13
d 13
e 14
f 14
10 14
11 14
12 14
13 14
14 14
15 14
16 14
17 14
18 14
19 14
1a 14
1b 14
1c 15
0 12
1 12
2 12
3 12
4 12
5 12
6 12
7 12
8 12
9 12
a 12
b 12
c 12
d 12
e 13
f 13
10 13
11 13
12 13
13 13
14 13
15 13
16 13
17 13
18 13
19 13
1a 13
1b 13
1c 14
}

method 'accept (Ljava/lang/Number;)Ljava/lang/Number;' {
0 18
1 18
2 18
3 18
4 18
5 18
6 18
7 19
8 19
0 17
1 17
2 17
3 17
4 17
5 17
6 17
7 18
8 18
}
}

Lines mapping:
24 <-> 8
31 <-> 8
32 <-> 11
38 <-> 14
39 <-> 14
40 <-> 14
41 <-> 14
42 <-> 14
43 <-> 15
44 <-> 15
45 <-> 15
46 <-> 15
47 <-> 15
48 <-> 16
54 <-> 19
55 <-> 19
56 <-> 19
57 <-> 20
58 <-> 20
64 <-> 9
65 <-> 9
66 <-> 9
67 <-> 9
69 <-> 10
24 <-> 7
31 <-> 7
32 <-> 10
38 <-> 13
39 <-> 13
40 <-> 13
41 <-> 13
42 <-> 13
43 <-> 14
44 <-> 14
45 <-> 14
46 <-> 14
47 <-> 14
48 <-> 15
54 <-> 18
55 <-> 18
56 <-> 18
57 <-> 19
58 <-> 19
64 <-> 8
65 <-> 8
66 <-> 8
67 <-> 8
69 <-> 9
Not mapped:
25
26
Expand Down

0 comments on commit eda1e66

Please sign in to comment.