Bug 18137 No uncaught exception are thrown by selected code. - .. But there is an uncaught IOExcption
eclipse build=20020521 Consider code 1 public Object foo(String name) 2 { 3 Object a; 4 a = super.createFilmType(name, false); 5 return a; 6 } *** Line 4 throws an IOException. So I select that line and select contextmenu source\surround with try ... I get a message "No uncaught exceptions are thrown..Catch java.lang RunTimeExc?" This is incorrect!
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/GenerateActionGroup.java
fAddGetterSetter.editorStateChanged();
		editor.setAction("AddGetterSetter", fAddGetterSetter); 
		
		fAddUnimplementedConstructors= new AddUnimplementedConstructorsAction(editor);
		fAddUnimplementedConstructors.setActionDefinitionId(IJavaEditorActionDefinitionIds.ADD_UNIMPLEMENTED_CONTRUCTORS);
		fAddUnimplementedConstructors.editorStateChanged();
		editor.setAction("AddUnimplementedConstructors", fAddUnimplementedConstructors); 		
		
		fAddJavaDocStub= new AddJavaDocStubAction(editor);
		fAddJavaDocStub.editorStateChanged();
		
		fSurroundWithTryCatch= new SurroundWithTryCatchAction(editor);
		fSurroundWithTryCatch.setActionDefinitionId(IJavaEditorActionDefinitionIds.SURROUND_WITH_TRY_CATCH);
		fSurroundWithTryCatch.update(selection);
		provider.addSelectionChangedListener(fSurroundWithTryCatch);
		editor.setAction("SurroundWithTryCatch", fSurroundWithTryCatch); 		
		
		fExternalizeStrings= new ExternalizeStringsAction(editor);
		fExternalizeStrings.setActionDefinitionId(IJavaEditorActionDefinitionIds.EXTERNALIZE_STRINGS);
		fExternalizeStrings.editorStateChanged();
		editor.setAction("ExternalizeStrings", fExternalizeStrings); 		
		
		fConvertToWindows= new ConvertLineDelimitersAction(editor, "\r\n"); 
		fConvertToWindows.setActionDefinitionId(IJavaEditorActionDefinitionIds.CONVERT_LINE_DELIMITERS_TO_WINDOWS);
		editor.setAction("ConvertLineDelimitersToWindows", fConvertToWindows); 		
		
		fConvertToUNIX= new ConvertLineDelimitersAction(editor, "\n"); 
		fConvertToUNIX.setActionDefinitionId(IJavaEditorActionDefinitionIds.CONVERT_LINE_DELIMITERS_TO_UNIX);
		editor.setAction("ConvertLineDelimitersToUNIX", fConvertToUNIX); 		
		fConvertToMac= new ConvertLineDelimitersAction(editor, "\r");