Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 324732

Summary: [upload] Widget is disposed if widget is disposed while upload is in progress
Product: [RT] RAP Reporter: Stefan Röck <stefan.roeck>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ivan
Version: 1.3   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
Testcase
none
Patch none

Description Stefan Röck CLA 2010-09-08 08:35:38 EDT
If the upload widget is disposed while an upload is in progress, and SWTException  is thrown:
org.eclipse.swt.SWTException: Widget is disposed
	at org.eclipse.swt.SWT.error(SWT.java:3199)
	at org.eclipse.swt.SWT.error(SWT.java:3119)
	at org.eclipse.swt.SWT.error(SWT.java:3090)
	at org.eclipse.swt.widgets.Widget.error(Widget.java:954)
	at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:890)
	at org.eclipse.rwt.widgets.Upload.removeUploadListener(Upload.java:567)
	at org.eclipse.rwt.widgets.Upload.performUpload(Upload.java:276)

As clients have no chance to interrupt an upload, this exception should not be thrown.
Comment 1 Stefan Röck CLA 2010-09-08 08:36:25 EDT
Created attachment 178391 [details]
Testcase

Testcase for 324732
Comment 2 Stefan Röck CLA 2010-09-08 09:09:31 EDT
Created attachment 178401 [details]
Patch
Comment 3 Stefan Röck CLA 2010-09-08 09:13:02 EDT
Applied patch to CVS Head.
Comment 4 Stefan Röck CLA 2010-09-08 09:17:01 EDT
... and to v13_Maintenance.
Comment 5 Stefan Röck CLA 2010-09-28 05:20:10 EDT
Set to resolved as nobody complained...