Community
Participate
Working Groups
We have three failures here. -testSimpleViewLeak -testBug2555005SiteLeak -testBug265449PropertiesLeak
(In reply to comment #0) > -testSimpleViewLeak > -testBug265449PropertiesLeak Fixed. http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=2f36b46905cbc7fefebe121ad272532e226064e5
(In reply to comment #1) > (In reply to comment #0) > > -testSimpleViewLeak > > -testBug265449PropertiesLeak Correction. testBug2555005SiteLeak was fixed. testBug265449PropertiesLeak is now fixed also. http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=fbf0e39912eed245b339765f927f4c00de16170d
(In reply to comment #1) > (In reply to comment #0) > > -testSimpleViewLeak > > -testBug265449PropertiesLeak > > Fixed. > > http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=2f36b46905cbc7fefebe121ad272532e226064e5 Remy I'm not sure but the fix looks strange because I think you could leave out items because of the remove not. Take this structure: MToolBar MOpaqueToolItem MOpaqueToolItem If i read the code appropriately you would not remove the second MOpaqueToolItem or am I mistaken Wouldn't it be better to use an Iterator and call iterator.remove()?
(In reply to comment #2) > (In reply to comment #1) > > (In reply to comment #0) > > > -testSimpleViewLeak > > > -testBug265449PropertiesLeak > > Correction. testBug2555005SiteLeak was fixed. > > testBug265449PropertiesLeak is now fixed also. > http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=fbf0e39912eed245b339765f927f4c00de16170d Same comment as the other one. I'm reopening this please close if you don't agree that this could is bogus and an iterator is the better and correct solution.
(In reply to comment #3) > Remy I'm not sure but the fix looks strange because I think you could leave out > items because of the remove not. > > Take this structure: > MToolBar > MOpaqueToolItem > MOpaqueToolItem > > If i read the code appropriately you would not remove the second > MOpaqueToolItem or am I mistaken > > Wouldn't it be better to use an Iterator and call iterator.remove()? I'm calling remove on the iterating 'i' local variable and also decrementing it in the next line. It seems right to me but I could be wrong.
Ah missed the decrement but I think using an iterator is better not?
(In reply to comment #6) > Ah missed the decrement but I think using an iterator is better not? The code is certainly easier to read that way. I will rewrite the code.
(In reply to comment #6) > Ah missed the decrement but I think using an iterator is better not? Done. http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=aad73d8ba1f576f62764828a8d53f37a467e191d