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

Collapse All | Expand All

(-)src/org/eclipse/jdt/core/tests/compiler/regression/LookupTest.java (+30 lines)
Lines 2479-2484 Link Here
2479
			"----------\n");
2479
			"----------\n");
2480
	}
2480
	}
2481
}
2481
}
2482
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=150758
2483
public void testONLY_075() {
2484
	this.runConformTest(
2485
			new String[] {
2486
				"package1/Test.java",//===================
2487
				"package package1;\n" + 
2488
				"import package2.MyList;\n" + 
2489
				"public class Test {\n" + 
2490
				"        public void reproduce(String sortKey, boolean isAscending) {\n" + 
2491
				"                MyList recList = new MyList();\n" + 
2492
				"                recList.add(null);\n" + 
2493
				"        }\n" + 
2494
				"}\n",//===================
2495
				"package2/MyList.java",//===================
2496
				"package package2;\n" + 
2497
				"import java.util.AbstractList;\n" + 
2498
				"import java.util.List;\n" + 
2499
				"public class MyList extends AbstractList implements List {\n" + 
2500
				"        void add(Integer i) {\n" + 
2501
				"        }\n" + 
2502
				"        public Object get(int index) {\n" + 
2503
				"                return null;\n" + 
2504
				"        }\n" + 
2505
				"        public int size() {\n" + 
2506
				"                return 0;\n" + 
2507
				"        }\n" + 
2508
				"}", // =================
2509
			},
2510
			"");
2511
}
2482
2512
2483
public static Class testClass() {	return LookupTest.class;
2513
public static Class testClass() {	return LookupTest.class;
2484
}
2514
}

Return to bug 150758