Community
Participate
Working Groups
20021213 JFaceColors allocates a new Color everytime i ask for the same thing test case for the Sleak tool: open a build.properties editor close SNAP open again close DIFF 2 new Colors are allocated - both in JFaceColors at org.eclipse.jface.resource.JFaceColors.getColorSetting(Unknown Source) at org.eclipse.jface.resource.JFaceColors.getActiveHyperlinkText(Unknown Source) and at org.eclipse.jface.resource.JFaceColors.getColorSetting(Unknown Source) at org.eclipse.jface.resource.JFaceColors.getHyperlinkText(Unknown Source) so i seems that everytime someone asks JFaceColors for any color they get a new instance. clients don't create them so they do not dispose them. it should be possible to reuse them. why aren't they reused? - allocating them anew everytime is suboptimal
*** Bug 28274 has been marked as a duplicate of this bug. ***
*** Bug 28275 has been marked as a duplicate of this bug. ***
Caching was there but the lookup was wrong. Also fixed an update in PreferenceConvertor. Fixed in build >20030213
Marking as closed.