test for class extending a class with a private constructor
This commit is contained in:
@@ -66,6 +66,7 @@ public class SingleClassesTest {
|
|||||||
@Test public void testAnonymousClassConstructor() { doTest("pkg/TestAnonymousClassConstructor"); }
|
@Test public void testAnonymousClassConstructor() { doTest("pkg/TestAnonymousClassConstructor"); }
|
||||||
@Test public void testInnerClassConstructor() { doTest("pkg/TestInnerClassConstructor"); }
|
@Test public void testInnerClassConstructor() { doTest("pkg/TestInnerClassConstructor"); }
|
||||||
@Test public void testInnerClassConstructor11() { doTest("v11/TestInnerClassConstructor"); }
|
@Test public void testInnerClassConstructor11() { doTest("v11/TestInnerClassConstructor"); }
|
||||||
|
//@Test public void testInnerClassConstructor2() { doTest("pkg/TestInner2"); } //TODO: fix
|
||||||
@Test public void testTryCatchFinally() { doTest("pkg/TestTryCatchFinally"); }
|
@Test public void testTryCatchFinally() { doTest("pkg/TestTryCatchFinally"); }
|
||||||
@Test public void testAmbiguousCall() { doTest("pkg/TestAmbiguousCall"); }
|
@Test public void testAmbiguousCall() { doTest("pkg/TestAmbiguousCall"); }
|
||||||
@Test public void testAmbiguousCallWithDebugInfo() { doTest("pkg/TestAmbiguousCallWithDebugInfo"); }
|
@Test public void testAmbiguousCallWithDebugInfo() { doTest("pkg/TestAmbiguousCallWithDebugInfo"); }
|
||||||
|
|||||||
BIN
testData/classes/pkg/TestInner2$1.class
Normal file
BIN
testData/classes/pkg/TestInner2$1.class
Normal file
Binary file not shown.
BIN
testData/classes/pkg/TestInner2$Another.class
Normal file
BIN
testData/classes/pkg/TestInner2$Another.class
Normal file
Binary file not shown.
BIN
testData/classes/pkg/TestInner2$Another2.class
Normal file
BIN
testData/classes/pkg/TestInner2$Another2.class
Normal file
Binary file not shown.
BIN
testData/classes/pkg/TestInner2$AnotherStatic.class
Normal file
BIN
testData/classes/pkg/TestInner2$AnotherStatic.class
Normal file
Binary file not shown.
BIN
testData/classes/pkg/TestInner2$AnotherStatic2.class
Normal file
BIN
testData/classes/pkg/TestInner2$AnotherStatic2.class
Normal file
Binary file not shown.
BIN
testData/classes/pkg/TestInner2.class
Normal file
BIN
testData/classes/pkg/TestInner2.class
Normal file
Binary file not shown.
89
testData/results/TestInner2.dec
Normal file
89
testData/results/TestInner2.dec
Normal 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
|
||||||
28
testData/src/pkg/TestInner2.java
Normal file
28
testData/src/pkg/TestInner2.java
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user