tests for IDEA-135314 Inner classes constructors calls decompiled incorrectly
This commit is contained in:
115
testData/results/TestInnerLocalPkg.dec
Normal file
115
testData/results/TestInnerLocalPkg.dec
Normal file
@@ -0,0 +1,115 @@
|
||||
package pkg;
|
||||
|
||||
public class TestInnerLocalPkg {
|
||||
public static void testStaticMethod() {
|
||||
class Inner {
|
||||
final String x;
|
||||
|
||||
public Inner(String var1) {
|
||||
this.x = var1;// 24
|
||||
}
|
||||
}
|
||||
|
||||
new Inner("test");// 27
|
||||
new TestInnerLocalPkg.Inner1Static("test");// 28
|
||||
new TestInnerLocalPkg.Inner1Static.Inner2Static("test");// 29
|
||||
}
|
||||
|
||||
public void testMethod() {
|
||||
class Inner {
|
||||
final String x;
|
||||
|
||||
public Inner(String var2) {
|
||||
this.x = var2;// 36
|
||||
}
|
||||
}
|
||||
|
||||
new Inner("test");// 39
|
||||
new TestInnerLocalPkg.Inner1Static("test");// 40
|
||||
new TestInnerLocalPkg.Inner1("test");// 41
|
||||
new TestInnerLocalPkg.Inner1Static.Inner2Static("test");// 42
|
||||
}
|
||||
|
||||
static class Inner1Static {
|
||||
final String x;
|
||||
|
||||
public Inner1Static(String var1) {
|
||||
this.x = var1;// 55
|
||||
}
|
||||
|
||||
public static class Inner2Static {
|
||||
final String x;
|
||||
|
||||
public Inner2Static(String var1) {
|
||||
this.x = var1;// 61
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class Inner1 {
|
||||
final String x;
|
||||
|
||||
public Inner1(String var2) {
|
||||
this.x = var2;// 48
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class 'pkg/TestInnerLocalPkg$1Inner' {
|
||||
method '<init> (Ljava/lang/String;)V' {
|
||||
6 8
|
||||
}
|
||||
}
|
||||
|
||||
class 'pkg/TestInnerLocalPkg' {
|
||||
method 'testStaticMethod ()V' {
|
||||
4 12
|
||||
e 13
|
||||
18 14
|
||||
}
|
||||
|
||||
method 'testMethod ()V' {
|
||||
5 26
|
||||
f 27
|
||||
1a 28
|
||||
24 29
|
||||
}
|
||||
}
|
||||
|
||||
class 'pkg/TestInnerLocalPkg$2Inner' {
|
||||
method '<init> (Lpkg/TestInnerLocalPkg;Ljava/lang/String;)V' {
|
||||
b 22
|
||||
}
|
||||
}
|
||||
|
||||
class 'pkg/TestInnerLocalPkg$Inner1Static' {
|
||||
method '<init> (Ljava/lang/String;)V' {
|
||||
6 36
|
||||
}
|
||||
}
|
||||
|
||||
class 'pkg/TestInnerLocalPkg$Inner1Static$Inner2Static' {
|
||||
method '<init> (Ljava/lang/String;)V' {
|
||||
6 43
|
||||
}
|
||||
}
|
||||
|
||||
class 'pkg/TestInnerLocalPkg$Inner1' {
|
||||
method '<init> (Lpkg/TestInnerLocalPkg;Ljava/lang/String;)V' {
|
||||
b 52
|
||||
}
|
||||
}
|
||||
|
||||
Lines mapping:
|
||||
24 <-> 9
|
||||
27 <-> 13
|
||||
28 <-> 14
|
||||
29 <-> 15
|
||||
36 <-> 23
|
||||
39 <-> 27
|
||||
40 <-> 28
|
||||
41 <-> 29
|
||||
42 <-> 30
|
||||
48 <-> 53
|
||||
55 <-> 37
|
||||
61 <-> 44
|
||||
Reference in New Issue
Block a user