Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 284296
Collapse All | Expand All

(-)src/org/eclipse/jdt/core/tests/compiler/regression/GenericsRegressionTest.java (+17 lines)
Lines 514-517 Link Here
514
		"Bound mismatch: The type U is not a valid substitute for the bounded parameter <T extends Number> of the type Test<T>\n" + 
514
		"Bound mismatch: The type U is not a valid substitute for the bounded parameter <T extends Number> of the type Test<T>\n" + 
515
		"----------\n");
515
		"----------\n");
516
}
516
}
517
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=284296
518
public void test284296() {
519
	this.runConformTest(
520
		    new String[] {
521
			        "Test.java",
522
			        "public class Test {\n" +
523
			        "    public static void main(String[] args) {\n" +
524
			        "        List<List<Integer>> list = new ListList<Integer>();\n" +
525
			        "        System.out.println(list instanceof ListList<?>);\n" +
526
			        "    }\n" +
527
			        "}\n" +
528
			        "interface List<T> {}\n" +
529
			        "class ArrayList<T> implements List<T> {}\n" +
530
			        "class ListList<T> extends ArrayList<List<T>> {}\n"
531
		    },
532
		    "true");
533
}
517
}
534
}

Return to bug 284296