| Summary: | [Workbench] Static field PresentablePartFolder#tempPartInfo prevents display reference from GC | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Ralf Sternberg <rsternberg> | ||||
| Component: | Workbench | Assignee: | Project Inbox <rap-inbox> | ||||
| Status: | NEW --- | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | ivan, wolfgang.pedot | ||||
| Version: | 1.4 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Ralf Sternberg
Quite an old bug, I was about to report that myself... As far as I can see the field is only used in initTab to transport data and making it a local variable in that method should not be a problem. (In reply to Wolfgang Pedot from comment #1) > Quite an old bug, I was about to report that myself... > As far as I can see the field is only used in initTab to transport data and > making it a local variable in that method should not be a problem. Could you provide a fix through Gerrit [1]? [1] https://eclipse.org/rap/source/ [2] https://wiki.eclipse.org/RAP/Git Created attachment 263840 [details]
make tempPartInfo into non-static member variable
Here is a patch, I checked whats happening with tempPartinfo during the setInfo and setSelectedInfo calls and all implementations I could find only access the members of tempPartInfo without storing its reference so there should be no side-effects. Making it non-static is less invasive than turning it into a local variable.
|