Project: Eclipse_Platform_UI
Bug 336856 [Compatibility] Text editors are being leaked
Reported: 2011-02-10 13:13:57 | Status: resolved fixed

Tried running JDT's leak tests and it seems we are leaking text editors. junit.framework.AssertionFailedError: Expected instance count: 0, actual: 1 Element 0 org.eclipse.ui.editors.text.TextEditor org.eclipse.ui.texteditor.AbstractDecoratedTextEditor$1#this$0 -> org.eclipse.ui.editors.text.TextEditor@1a99c02 java.lang.Object[0] -> org.eclipse.ui.texteditor.AbstractDecoratedTextEditor$1@7aecbb org.eclipse.core.runtime.ListenerList#listeners -> [Ljava.lang.Object;@14c22ed org.eclipse.jface.action.MenuManager#listeners -> org.eclipse.core.runtime.ListenerList@14e3ee5 java.util.HashMap$Entry#value -> org.eclipse.jface.action.MenuManager@f76524 java.util.HashMap$Entry[1] -> org.eclipse.e4.ui.model.application.ui.menu.impl.PopupMenuImpl@1aa3ac1 (elementId: #OverviewRulerCo java.util.HashMap#table -> [Ljava.util.HashMap$Entry;@1834e24 org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerRenderer#modelToManager -> {org.eclipse.e4.ui.model.application.ui.menu.impl.MenuImpl@115c6cb (elementId: org.eclipse.jdt.ui.s org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerRenderer$1#this$0 -> org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerRenderer@d786ca org.eclipse.e4.ui.services.internal.events.UIEventHandler#eventHandler -> org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerRenderer$1@139a0dc org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl#service -> org.eclipse.e4.ui.services.internal.events.UIEventHandler@a8d45 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;@179d4fb 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@1d0e43a org.eclipse.osgi.framework.internal.core.AbstractBundle#framework -> org.eclipse.osgi.framework.internal.core.Framework@12b116f 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@102c93e

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