inline superclass: process default/implicit constructors (IDEADEV-41326)

This commit is contained in:
anna
2009-11-12 19:06:31 +03:00
parent d9831b2c91
commit 11373491d2
12 changed files with 148 additions and 9 deletions
@@ -0,0 +1,6 @@
class Test {
Test() {
System.out.println("Super");
System.out.println("Test");
}
}
@@ -0,0 +1,5 @@
class Super {
Super() {
System.out.println("Super");
}
}
@@ -0,0 +1,5 @@
class Test extends Super{
Test() {
System.out.println("Test");
}
}
@@ -1,5 +1,6 @@
class Test {
Test(String s){super(s);}
Test(String s){
}
void foo() {
Test s = new Test("");
@@ -0,0 +1,6 @@
class Test {
Test() {
System.out.println("");
}
}
@@ -0,0 +1,5 @@
class Super {
Super() {
System.out.println("");
}
}
@@ -0,0 +1,3 @@
class Test extends Super{
}
@@ -2,8 +2,10 @@ class Test {
String s;
Test(String s){
super(s);
System.out.println("hello");
if (s != null) {
this.s = s;
}
System.out.println("hello");
}
void foo() {