Project: Eclipse_Platform_UI
Bug 224682 [Contributions] WorkbenchMenuService leaks editors after auto-closing
Reported: 2008-03-28 13:11:51 | Status: verified fixed

I20080327-2251 - new workspace - import plug-in org.eclipse.core.expressions as source - Preferences > General > Editors: set 'Number of opened editors before closing' to 2 - expand package org.eclipse.core.expressions - for the first 5 files, repeat: - open file - right-click into editor area to open context menu - left-click into editor area to close context menu - File > Close All => The last 2 CompilationUnitEditors are leaked. Typical paths from GC roots are: - activePart of org.eclipse.ui.internal.expressions.ActivePartExpression - restriction of org.eclipse.ui.internal.menus.WorkbenchMenuService$ManagerPopulationRecord - value of java.util.HashMap$Entry - [126] of java.util.HashMap$Entry[128] - table of java.util.HashMap - populatedManagers of org.eclipse.ui.internal.menus.WorkbenchMenuService - fMenuService of org.eclipse.ui.internal.menus.TrimBarManager2 - trimMgr2 of org.eclipse.ui.internal.WorkbenchWindow - activeWorkbenchWindow of org.eclipse.ui.internal.Workbench [Stack Local] , and: - fEditor of org.eclipse.jdt.ui.actions.ExternalizeStringsAction - action of org.eclipse.jface.action.ActionContributionItem - [21] of java.lang.Object[25] - elementData of java.util.ArrayList - contributions of org.eclipse.jface.action.MenuManager - key of java.util.HashMap$Entry - [97] of java.util.HashMap$Entry[128] - table of java.util.HashMap - populatedManagers of org.eclipse.ui.internal.menus.WorkbenchMenuService - fMenuService of org.eclipse.ui.internal.menus.TrimBarManager2 - trimMgr2 of org.eclipse.ui.internal.WorkbenchWindow - activeWorkbenchWindow of org.eclipse.ui.internal.Workbench [Stack Local]

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PopupMenuExtender.java