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

Collapse All | Expand All

(-)src/org/eclipse/jdt/core/tests/compiler/regression/AutoBoxingTest.java (-4 / +76 lines)
Lines 35-45 Link Here
35
35
36
	// Static initializer to specify tests subset using TESTS_* static variables
36
	// Static initializer to specify tests subset using TESTS_* static variables
37
	// All specified tests which does not belong to the class are skipped...
37
	// All specified tests which does not belong to the class are skipped...
38
//	static {
38
	static {
39
//		TESTS_NAMES = new String[] { "test000" };
39
//		TESTS_NAMES = new String[] { "test000" };
40
//		TESTS_NUMBERS = new int[] { 65 };
40
//		TESTS_NUMBERS = new int[] { 150 };
41
//		TESTS_RANGE = new int[] { 11, -1 };
41
//		TESTS_RANGE = new int[] { 147, -1 };
42
//	}
42
	}
43
	public static Test suite() {
43
	public static Test suite() {
44
		return buildComparableTestSuite(testClass());
44
		return buildComparableTestSuite(testClass());
45
	}
45
	}
Lines 4336-4339 Link Here
4336
		settings,
4336
		settings,
4337
		null);		
4337
		null);		
4338
}
4338
}
4339
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=184957
4340
public void test147() {
4341
	this.runConformTest(
4342
		new String[] {
4343
			"X.java",
4344
			"public class X {\n" + 
4345
			"	public static void main(String[] args) {\n" + 
4346
			"		if(new Integer(2) == 0) {}\n" + 
4347
			"		System.out.println(\"SUCCESS\");\n" + 
4348
			"	}\n" + 
4349
			"}",
4350
		},
4351
		"SUCCESS");
4352
}
4353
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=184957
4354
public void test148() {
4355
	this.runConformTest(
4356
		new String[] {
4357
			"X.java",
4358
			"public class X {\n" + 
4359
			"	public static void main(String[] args) {\n" + 
4360
			"		Z test = new Z(1, 1);\n" + 
4361
			"		System.out.println(\"SUCCESS\" + test.foo());\n" + 
4362
			"	}\n" + 
4363
			"}",
4364
			"Z.java",
4365
			"class Z {\n" + 
4366
			"	public <A, B extends A> Z(A a, B b) {\n" + 
4367
			"	}\n" + 
4368
			"	public int foo() {\n" +
4369
			"		return 0;\n" +
4370
			"	}\n" +
4371
			"}"
4372
		},
4373
		"SUCCESS0");
4374
}
4375
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=184957
4376
public void test149() {
4377
	this.runConformTest(
4378
		new String[] {
4379
			"X.java",
4380
			"public class X {\n" + 
4381
			"	public static void main(String[] args) {\n" + 
4382
			"		Z test = new Z(1, 1);\n" + 
4383
			"		System.out.println(\"SUCCESS\");\n" + 
4384
			"	}\n" + 
4385
			"}",
4386
			"Z.java",
4387
			"class Z {\n" + 
4388
			"	public <A, B extends A> Z(A a, B b) {\n" + 
4389
			"	}\n" +
4390
			"}"
4391
		},
4392
		"SUCCESS");
4393
}
4394
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=184957
4395
public void test150() {
4396
	this.runConformTest(
4397
		new String[] {
4398
			"X.java",
4399
			"public class X {\n" + 
4400
			"	public static void main(String[] args) {\n" + 
4401
			"		if(new Integer(2) == 0) {\n" +
4402
			"			System.out.println(\"FAILED\");\n" + 
4403
			"		} else {\n" + 
4404
			"			System.out.println(\"SUCCESS\");\n" + 
4405
			"		}\n" +
4406
			"	}\n" + 
4407
			"}",
4408
		},
4409
		"SUCCESS");
4410
}
4339
}
4411
}

Return to bug 184957