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
result.add(new Separator());
		added+= addAction(result, fOverrideMethods);
		added+= addAction(result, fAddGetterSetter);
		added+= addAction(result, fAddUnimplementedConstructors);
		added+= addAction(result, fAddJavaDocStub);
		added+= addAction(result, fAddBookmark);
		result.add(new Separator());		
		added+= addAction(result, fSurroundWithTryCatch);
		added+= addAction(result, fExternalizeStrings);
		if (added == 0)
			result= null;
		return result;
	}
	/* (non-Javadoc)
	 * Method declared in ActionGroup
	 */
	public void dispose() {
		if (fRegisteredSelectionListeners != null) {
			ISelectionProvider provider= fSite.getSelectionProvider();
			for (Iterator iter= fRegisteredSelectionListeners.iterator(); iter.hasNext();) {
				ISelectionChangedListener listener= (ISelectionChangedListener) iter.next();
				provider.removeSelectionChangedListener(listener);
			}
		}
		super.dispose();
	}
	
	private void setGlobalActionHandlers(IActionBars actionBar) {
		actionBar.setGlobalActionHandler(JdtActionConstants.ADD_IMPORT, fAddImport);
		actionBar.setGlobalActionHandler(JdtActionConstants.SURROUND_WITH_TRY_CATCH, fSurroundWithTryCatch);