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

Collapse All | Expand All

(-)src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java (+67 lines)
Lines 1562-1567 Link Here
1562
		        "incorrect classpath: dummy\n",
1562
		        "incorrect classpath: dummy\n",
1563
		        false);
1563
		        false);
1564
		}
1564
		}
1565
// Extraneous auto-build error message - https://bugs.eclipse.org/bugs/show_bug.cgi?id=93377
1566
public void _test030(){
1567
	// first series shows that a clean build is OK
1568
	this.runConformTest(
1569
		new String[] {
1570
			"X.java",
1571
			"public interface X<T extends X<T, K, S>, \n" + 
1572
			"                   K extends X.K<T, S>, \n" + 
1573
			"                   S extends X.S> {\n" + 
1574
			"	public interface K<KT extends X<KT, ?, KS>, \n" + 
1575
			"	                   KS extends X.S> {\n" + 
1576
			"	}\n" + 
1577
			"	public interface S {\n" + 
1578
			"	}\n" + 
1579
			"}\n",
1580
			"Y.java",
1581
			"public class Y<T extends X<T, K, S>, \n" + 
1582
			"               K extends X.K<T, S>, \n" + 
1583
			"               S extends X.S> { \n" + 
1584
			"}\n",
1585
		},
1586
        "\"" + OUTPUT_DIR +  File.separator + "Y.java\""
1587
        + " -1.5 -g -preserveAllLocals"
1588
        + " -cp \"" + OUTPUT_DIR + File.separator + "\""
1589
        + " -proceedOnError -referenceInfo"
1590
        + " -d \"" + OUTPUT_DIR + "\"",
1591
        "",
1592
        "",
1593
        true);
1594
	// second series shows that a staged build - that simulates the auto build context - is KO
1595
	this.runConformTest(
1596
		new String[] {
1597
			"X.java",
1598
			"public interface X<T extends X<T, K, S>, \n" + 
1599
			"                   K extends X.K<T, S>, \n" + 
1600
			"                   S extends X.S> {\n" + 
1601
			"	public interface K<KT extends X<KT, ?, KS>, \n" + 
1602
			"	                   KS extends X.S> {\n" + 
1603
			"	}\n" + 
1604
			"	public interface S {\n" + 
1605
			"	}\n" + 
1606
			"}\n",
1607
		},
1608
        "\"" + OUTPUT_DIR +  File.separator + "X.java\""
1609
        + " -1.5 -g -preserveAllLocals"
1610
        + " -proceedOnError -referenceInfo" 
1611
        + " -d \"" + OUTPUT_DIR + "\"",
1612
        "",
1613
        "",
1614
        true);
1615
	this.runConformTest(
1616
		new String[] {
1617
			"Y.java",
1618
			"public class Y<T extends X<T, K, S>, \n" + 
1619
			"               K extends X.K<T, S>, \n" + 
1620
			"               S extends X.S> { \n" + 
1621
			"}\n",
1622
		},
1623
        "\"" + OUTPUT_DIR +  File.separator + "Y.java\""
1624
        + " -1.5 -g -preserveAllLocals"
1625
        + " -cp \"" + OUTPUT_DIR + File.separator + "\""
1626
        + " -proceedOnError -referenceInfo"
1627
        + " -d \"" + OUTPUT_DIR + "\"",
1628
        "",
1629
        "",
1630
        false);
1631
}
1565
public static Class testClass() {
1632
public static Class testClass() {
1566
	return BatchCompilerTest.class;
1633
	return BatchCompilerTest.class;
1567
}
1634
}

Return to bug 93377