View | Details | Raw Unified | Return to bug 137744 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/jdt/core/tests/compiler/regression/Compliance_1_3.java (-1 / +59 lines)
Lines 52-58 Link Here
52
// All specified tests which does not belong to the class are skipped...
52
// All specified tests which does not belong to the class are skipped...
53
static {
53
static {
54
//		TESTS_NAMES = new String[] { "Bug58069" };
54
//		TESTS_NAMES = new String[] { "Bug58069" };
55
//		TESTS_NUMBERS = new int[] { 104 };
55
//		TESTS_NUMBERS = new int[] { 106 };
56
//		TESTS_RANGE = new int[] { 76, -1 };
56
//		TESTS_RANGE = new int[] { 76, -1 };
57
}
57
}
58
/* (non-Javadoc)
58
/* (non-Javadoc)
Lines 3634-3637 Link Here
3634
		"No enclosing instance of the type X is accessible in scope\n" + 
3634
		"No enclosing instance of the type X is accessible in scope\n" + 
3635
		"----------\n");
3635
		"----------\n");
3636
}
3636
}
3637
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=137744
3638
public void test106() {
3639
	this.runConformTest(
3640
		new String[] {
3641
			"X.java",
3642
			"public class X {\n" + 
3643
			"	public static void main(String[] args) {\n" + 
3644
			"		System.out.println(\"SUCCESS\");\n" + 
3645
			"		B a = new C();\n" + 
3646
			"		\n" + 
3647
			"		a.hasKursAt(1);\n" + 
3648
			"	}\n" + 
3649
			"\n" + 
3650
			"}",
3651
			"A.java",
3652
			"abstract public class A implements IA0 {\n" + 
3653
			"	int t;\n" + 
3654
			"	public A() {\n" + 
3655
			"	}\n" + 
3656
			"}",
3657
			"B.java",
3658
			"abstract public class B extends A implements IA3, IA1 {\n" + 
3659
			"	int a;\n" + 
3660
			"	public B() {\n" + 
3661
			"	}\n" + 
3662
			"	public void test() {	\n" + 
3663
			"	}\n" + 
3664
			"}",
3665
			"C.java",
3666
			"public class C extends B implements IA4, IA2{\n" + 
3667
			"	int c;\n" + 
3668
			"	public C() {\n" + 
3669
			"	}\n" + 
3670
			"	public boolean hasKursAt(int zeitpunkt) {\n" + 
3671
			"		return false;\n" + 
3672
			"	}\n" + 
3673
			"}",
3674
			"IA0.java",
3675
			"public interface IA0 {\n" + 
3676
			"	public void test();\n" + 
3677
			"}",
3678
			"IA1.java",
3679
			"public interface IA1 extends IA0 {\n" + 
3680
			"	public boolean hasKursAt(int zeitpunkt);\n" + 
3681
			"}",
3682
			"IA2.java",
3683
			"public interface IA2 extends IA0 {\n" + 
3684
			"	public boolean hasKursAt(int zeitpunkt);\n" + 
3685
			"}",
3686
			"IA3.java",
3687
			"public interface IA3 extends IA2 {\n" + 
3688
			"}",
3689
			"IA4.java",
3690
			"public interface IA4 extends IA3 {\n" + 
3691
			"}"
3692
		},
3693
		"SUCCESS");
3694
}
3637
}
3695
}

Return to bug 137744