test for class extending a class with a private constructor

This commit is contained in:
Egor.Ushakov
2017-04-26 15:54:26 +03:00
parent 8c440e281c
commit d40f673689
9 changed files with 118 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,89 @@
package pkg;
class TestInner2 {
private TestInner2() {
}// 4
private TestInner2(int a) {
}// 5
static class AnotherStatic2 extends TestInner2 {
AnotherStatic2() {
super(2);// 25
}// 26
}
class Another2 extends TestInner2 {
Another2() {
super(2);// 19
}// 20
}
static class AnotherStatic extends TestInner2 {
AnotherStatic() {
}// 14
}
class Another extends TestInner2 {
Another() {
}// 9
}
}
class 'pkg/TestInner2' {
method '<init> ()V' {
4 4
}
method '<init> (I)V' {
4 7
}
}
class 'pkg/TestInner2$AnotherStatic2' {
method '<init> ()V' {
1 11
2 11
3 11
6 12
}
}
class 'pkg/TestInner2$Another2' {
method '<init> (Lpkg/TestInner2;)V' {
6 17
7 17
8 17
b 18
}
}
class 'pkg/TestInner2$AnotherStatic' {
method '<init> ()V' {
1 23
2 23
5 24
}
}
class 'pkg/TestInner2$Another' {
method '<init> (Lpkg/TestInner2;)V' {
6 29
7 29
a 30
}
}
Lines mapping:
4 <-> 5
5 <-> 8
8 <-> 30
9 <-> 31
13 <-> 24
14 <-> 25
19 <-> 18
20 <-> 19
25 <-> 12
26 <-> 13
Not mapped:
18

View File

@@ -0,0 +1,28 @@
package pkg;
class TestInner2 {
private TestInner2() {}
private TestInner2(int a) {}
class Another extends TestInner2 {
Another() {
}
}
static class AnotherStatic extends TestInner2 {
AnotherStatic() {
}
}
class Another2 extends TestInner2 {
Another2() {
super(2);
}
}
static class AnotherStatic2 extends TestInner2 {
AnotherStatic2() {
super(2);
}
}
}