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
fEditor.add(SimpleTextEdit.createReplace(0, 2, "01"));
		fEditor.add(SimpleTextEdit.createReplace(0, 1, "0"));
		assertTrue(!fEditor.canPerformEdits());
	}	
	
	public void testOverlap3() throws Exception {
		
		fEditor.add(SimpleTextEdit.createReplace(0, 2, "01"));
		fEditor.add(SimpleTextEdit.createReplace(1, 1, "1"));
		assertTrue(!fEditor.canPerformEdits());
	}	
	
	public void testOverlap4() throws Exception {
		
		fEditor.add(SimpleTextEdit.createReplace(0, 3, "012"));
		fEditor.add(SimpleTextEdit.createReplace(1, 1, "1"));
		assertTrue(!fEditor.canPerformEdits());
	}
	
	public void testOverlap5() throws Exception {
		
		fEditor.add(SimpleTextEdit.createReplace(0, 3, "012"));
		fEditor.add(SimpleTextEdit.createInsert(1, "xx"));
		assertTrue(!fEditor.canPerformEdits());
	}
	
	public void testOverlap6() throws Exception {
		
		fEditor.add(SimpleTextEdit.createReplace(0, 3, "012"));
		fEditor.add(SimpleTextEdit.createInsert(2, "xx"));