Project: Eclipse_Platform_UI
Bug 336862 [Compatibility] Java editor context menu's OpaqueMenuItem causes editor to leak
Reported: 2011-02-10 14:14:24 | Status: verified fixed

org.eclipse.jdt.ui.tests.leaks.JavaLeakTest's testJavaEditorContextMenu is failing. junit.framework.AssertionFailedError: Expected instance count: 0, actual: 1 Element 0 org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor org.eclipse.ui.texteditor.TextEditorAction#fTextEditor -> org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor@1321a4f org.eclipse.jface.action.ActionContributionItem#action -> org.eclipse.jdt.internal.ui.javaeditor.ClipboardOperationAction@261e08 java.util.HashMap$Entry#value -> org.eclipse.jface.action.ActionContributionItem(id=paste) java.util.HashMap$Entry[61] -> org.eclipse.e4.ui.model.application.ui.menu.impl.OpaqueMenuItemImpl@c7d60c (elementId: paste, tags: java.util.HashMap#table -> [Ljava.util.HashMap$Entry;@755470 org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerRenderer#modelToContribution -> {org.eclipse.e4.ui.model.application.ui.menu.impl.MenuSeparatorImpl@1330af4 (elementId: reorgGroup, org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerRenderer$1#this$0 -> org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerRenderer@4621ac org.eclipse.e4.ui.services.internal.events.UIEventHandler#eventHandler -> org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerRenderer$1@1ae74f5 org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl#service -> org.eclipse.e4.ui.services.internal.events.UIEventHandler@1f24908 java.lang.Object[160] -> {org.osgi.service.event.EventHandler}={event.topics=[org/eclipse/e4/ui/model/ui/UILabel/*], service java.util.ArrayList#elementData -> [Ljava.lang.Object;@9003aa org.eclipse.osgi.internal.serviceregistry.ServiceRegistry#allPublishedServices -> [{org.eclipse.osgi.framework.console.CommandProvider}={service.ranking=2147483647, service.id=2}, { org.eclipse.osgi.framework.internal.core.Framework#serviceRegistry -> org.eclipse.osgi.internal.serviceregistry.ServiceRegistry@187b9fe org.eclipse.osgi.framework.internal.core.AbstractBundle#framework -> org.eclipse.osgi.framework.internal.core.Framework@538793 org.eclipse.osgi.internal.loader.BundleLoader#bundle -> org.eclipse.jdt.ui.tests_3.7.0.qualifier [154] org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader#delegate -> org.eclipse.jdt.ui.tests_3.7.0.qualifier org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader -> org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader@3e090f

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