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

Collapse All | Expand All

(-)a/org.eclipse.jdt.ui.tests.refactoring/resources/SurroundWithWorkSpace/SurroundWithTests/trycatch17_in/TestMultiTryCatch.java (+13 lines)
Added Link Here
1
package trycatch17_in;
2
import java.io.IOException;
3
4
public class TestMultiTryCatch {
5
	private static void call() throws Exception, IOException {
6
		
7
	}
8
	
9
	public static void main(String[] args) {
10
		/*[*/call();/*]*/
11
	}
12
13
}
(-)a/org.eclipse.jdt.ui.tests.refactoring/resources/SurroundWithWorkSpace/SurroundWithTests/trycatch17_out/TestMultiTryCatch.java (+16 lines)
Added Link Here
1
package trycatch17_out;
2
import java.io.IOException;
3
4
public class TestMultiTryCatch {
5
	private static void call() throws Exception, IOException {
6
		
7
	}
8
	
9
	public static void main(String[] args) {
10
		try {
11
			/*[*/call();/*]*/
12
		} catch (Exception e) {
13
		}
14
	}
15
16
}
(-)a/org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/SurroundWithTests17.java (+5 lines)
Lines 7-12 Link Here
7
 *
7
 *
8
 * Contributors:
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
9
 *     IBM Corporation - initial API and implementation
10
 *     Samrat Dhillon samrat.dhillon@gmail.com - Bug 388724 -  [surround with try/catch][quick fix] Multi-Catch QuickFix creates compiler error
10
 *******************************************************************************/
11
 *******************************************************************************/
11
package org.eclipse.jdt.ui.tests.refactoring;
12
package org.eclipse.jdt.ui.tests.refactoring;
12
13
Lines 59-63 Link Here
59
	public void testSimple2() throws Exception {
60
	public void testSimple2() throws Exception {
60
		tryCatchTest();
61
		tryCatchTest();
61
	}
62
	}
63
	
64
	public void testMultiTryCatch() throws Exception {
65
		tryCatchTest();
66
	}
62
67
63
}
68
}

Return to bug 388724