Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324732 - [upload] Widget is disposed if widget is disposed while upload is in progress
Summary: [upload] Widget is disposed if widget is disposed while upload is in progress
Status: RESOLVED FIXED
Alias: None
Product: RAP
Classification: RT
Component: RWT (show other bugs)
Version: 1.3   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-08 08:35 EDT by Stefan Röck CLA
Modified: 2010-09-28 05:20 EDT (History)
1 user (show)

See Also:


Attachments
Testcase (1.23 KB, text/plain)
2010-09-08 08:36 EDT, Stefan Röck CLA
no flags Details
Patch (899 bytes, patch)
2010-09-08 09:09 EDT, Stefan Röck CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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...