| Summary: | ProgressCollector and UploaderWidget are lacking isDisposed() check | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Frank Jakop <frank.jakop> | ||||
| Component: | RWT | Assignee: | Project Inbox <rap.incubator-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | Daniel.Ebert, mknauer | ||||
| Version: | 2.3 | ||||||
| Target Milestone: | 3.1 M2 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| See Also: |
https://git.eclipse.org/r/54658 https://git.eclipse.org/c/rap/org.eclipse.rap.git/commit/?id=ad0aa97d1d9f93013a76dcf607dda3988db5e9b8 |
||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Frank Jakop
Created attachment 256117 [details]
Additional checks for isDisposed()
(In reply to Frank Jakop from comment #0) > We'd like to push this changes to gerrit, That's great! > but the documentation how to register and get to it seems > to be hidden very well. Okay, not so great :( > Can you help me there? Yes, we can certainly help here. The 'Contributing via Git' documentation at [1] should be a good starting point. Most RAP related projects are available in Gerrit [2], the remaining RAP Incubator projects are in Git [3]. Hope that helps... [1] https://wiki.eclipse.org/Development_Resources/Contributing_via_Git#via_Gerrit [2] https://git.eclipse.org/r/#/admin/projects/?filter=rap%252F [3] http://git.eclipse.org/c/rap/ New Gerrit change created: https://git.eclipse.org/r/54658 I submitted a gerrit changeset for master, but I was not able to get it into streams/2.3 git repo, because fileupload was still incubator in 2.3 and incubator is not controlled by Gerrit. (In reply to Frank Jakop from comment #0) > org/eclipse/swt/internal/widgets/UploaderWidget:dispose() I had a quick look into the master branch; in UploaderWidget:dispose() we check !fileUpload.isDisposed() first which should be sufficient in my opinion. What else could happen? Someone could call dispose() first, and submit() second. In that case the caller would get a widget-disposed-error which sounds correct, too. I wouldn't change anything in that class, and as far as I can see you didn't propose any changes to it in your Gerrit change, too. I just want to make sure that this is intentional. Frank(and i) made that change based on an old branch (0.6.0-SNAPSHOT) where the !fileUpload.isDisposed() hasnt been there. Apparently UploaderWidget.dispose has already been fixed, so we dont see a diff to master. Gerrit change https://git.eclipse.org/r/54658 was merged to [master]. Commit: http://git.eclipse.org/c/rap/org.eclipse.rap.git/commit/?id=ad0aa97d1d9f93013a76dcf607dda3988db5e9b8 Fixed. |