Bug 164026 - [Sleak] Checkbox to ignore Colors, which aren't really resources
Summary: [Sleak] Checkbox to ignore Colors, which aren't really resources
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 245894 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-11-09 15:41 EST by Randy Hudson CLA
Modified: 2021-11-12 11:44 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Randy Hudson CLA 2006-11-09 15:41:12 EST
I'm not interested in seeing colors in the Sleak inpector. I don't bother disposing colors in my application, so there are lots of reported leaks.

Can there be an option to filter/ignore Colors?  Should this option prevent the Display from leaking the Color instances which would otherwise get GCed?
Comment 1 Steve Northover CLA 2006-11-09 15:51:17 EST
Sounds reasonable to me, however, their are still some old Motif Unix boxes where colors can leak.  Also, WinCE and other hand-helds might have the problem as well.
Comment 2 Randy Hudson CLA 2006-11-09 17:45:49 EST
Can colors really leak on those platforms? Or, can up to 256 colors leak, but no more than 256.
Comment 3 Randy Hudson CLA 2008-09-02 09:47:44 EDT
*** Bug 245894 has been marked as a duplicate of this bug. ***
Comment 4 Thomas M??der CLA 2008-09-30 08:09:24 EDT
(In reply to comment #1)
> Sounds reasonable to me, however, their are still some old Motif Unix boxes
> where colors can leak.  Also, WinCE and other hand-helds might have the problem
> as well.
> 

If Colors are indeed not resources, could the javadoc for color be fixed? Alternatively, could there be a positive list of platforms where Colors are definitely NOT resources? GEF, for example leaks Colors left right and center (if indeed they are Resources). Otherwise, I guess the GEF FAQ should be fixed to indicate which platforms are supported:

from the GEF FAQ:

"GEF is written in pure Java and should run on all operating systems officially supported by the Eclipse platform. ..."
Comment 5 Eclipse Webmaster CLA 2019-09-06 16:06:21 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.