Bug 7985 extract method: cannot extract (entire) try/catch block
public class A{ String f(int y, int z, boolean ff){ /*[*/try{ } catch (Exception e){ }/*]*/ return null; } void f(){} } cannot extract the selected fragment
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java
assertTrue(!fEditor.canPerformEdits());
	}
	
	public void testOverlap7() throws Exception {
		boolean catched= false;
		try {
			new MoveTextEdit(2,5,3);
		} catch (Exception e) {
			catched= true;
		}
		assertTrue(catched);
	}
	
	public void testOverlap8() throws Exception {
		boolean catched= false;
		try {
			new MoveTextEdit(2,5,6);
		} catch (Exception e) {
			catched= true;
		}
		assertTrue(catched);
	}
	
	public void testOverlap9() throws Exception {
		MoveTextEdit e1= new MoveTextEdit(3, 1, 7);
		MoveTextEdit e2= new MoveTextEdit(2, 3, 8);
		fEditor.add(e1);
		fEditor.add(e2);
		assertTrue(!fEditor.canPerformEdits());
	}