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 394718 | Differences between
and this patch

Collapse All | Expand All

(-)a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/StackMapAttributeTest.java (-1 / +39 lines)
Lines 34-40 Link Here
34
	// All specified tests which does not belong to the class are skipped...
34
	// All specified tests which does not belong to the class are skipped...
35
	static {
35
	static {
36
//		TESTS_PREFIX = "testBug95521";
36
//		TESTS_PREFIX = "testBug95521";
37
//		TESTS_NAMES = new String[] { "testBug380313" };
37
//		TESTS_NAMES = new String[] { "test394718" };
38
//		TESTS_NUMBERS = new int[] { 53 };
38
//		TESTS_NUMBERS = new int[] { 53 };
39
//		TESTS_RANGE = new int[] { 23 -1,};
39
//		TESTS_RANGE = new int[] { 23 -1,};
40
	}
40
	}
Lines 8161-8164 Link Here
8161
			assertEquals("Wrong contents", expectedOutput, actualOutput);
8161
			assertEquals("Wrong contents", expectedOutput, actualOutput);
8162
		}
8162
		}
8163
	}
8163
	}
8164
	// from https://bugs.eclipse.org/bugs/show_bug.cgi?id=394718
8165
	public void test394718() throws Exception {
8166
		this.runConformTest(
8167
			new String[] {
8168
					"X.java",
8169
					"public class X\n" + 
8170
					"{\n" + 
8171
					"	public static Boolean test() throws Exception\n" + 
8172
					"	{\n" + 
8173
					"		try\n" + 
8174
					"		{\n" + 
8175
					"			for (int i = 0; i < 1; i++)\n" + 
8176
					"			{\n" + 
8177
					"				long status = System.currentTimeMillis();\n" + 
8178
					"				if (status < 0)\n" + 
8179
					"					return false;\n" + 
8180
					"				if (status == 1)\n" + 
8181
					"					return false;\n" + 
8182
					"			}\n" + 
8183
					"			\n" + 
8184
					"			return false;\n" + 
8185
					"		}\n" + 
8186
					"		finally\n" + 
8187
					"		{\n" + 
8188
					"			System.currentTimeMillis();\n" + 
8189
					"		}\n" + 
8190
					"	}\n" + 
8191
					"	\n" + 
8192
					"	public static void main(String[] args) throws Exception\n" + 
8193
					"	{\n" + 
8194
					"		System.out.print(\"Starting\");\n" + 
8195
					"		test();\n" + 
8196
					"		System.out.println(\"Done\");\n" + 
8197
					"	}\n" + 
8198
					"}"
8199
			},
8200
			"StartingDone");
8201
	}	
8164
}
8202
}

Return to bug 394718