Bug 52336 [Viewers] Internal error at start of debug session
Was trying to debug my plugin when I got this. Note that the error occurred in the 2nd instance of eclipse. Am using eclipse build m7. Steps: 1. Debug as 'Runtime Workbench' 2. In 2nd instance of eclipse create java project and create class package p1; public class c1 { public static void main(String[] args) throws Throwable { synchronized ( c1.class ) { c1.class.wait(); } } } 3. Debug new project as 'Java Application' Dlg popped in 2nd instance of eclipse stating 'Internal Error'. .log file contained text below. !SESSION lut 17, 2004 21:45:38.796 --------------------------------------------- java.version=1.4.2_03 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=pl_PL Command-line arguments: -data c:\home2\dsmall\temp\m6_workspace -dev bin !ENTRY org.eclipse.core.runtime 4 2 lut 17, 2004 21:45:38.796 !MESSAGE An internal error occurred during: "Debug". !STACK 0 java.lang.ArrayIndexOutOfBoundsException: 1 at org.eclipse.jface.util.ListenerList.add(ListenerList.java:103) at org.eclipse.jface.viewers.LabelProvider.addListener (LabelProvider.java:43) at org.eclipse.debug.internal.ui.LazyModelPresentation.getPresentation (LazyModelPresentation.java:196) at org.eclipse.debug.internal.ui.LazyModelPresentation.getText (LazyModelPresentation.java:121) at org.eclipse.debug.internal.ui.DelegatingModelPresentation.getText (DelegatingModelPresentation.java:183) at org.eclipse.debug.internal.ui.views.DebugViewLabelDecorator$LabelJob.run (DebugViewLabelDecorator.java:326) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:62)
bundles/org.eclipse.jface/src/org/eclipse/jface/util/ListenerList.java
*/
	public void add(Object listener) {
		Assert.isNotNull(listener);
		if (size == 0) {
			listeners = new Object[capacity];
		} else {
			
			for (int i = 0; i < size; ++i) {
				if (listeners[i] == listener) {
					return;
				}
			}
			
			if (size == listeners.length) {
				System.arraycopy(listeners, 0, listeners = new Object[size * 2 + 1], 0, size);
			}
		}
		listeners[size++] = listener;
	}
	/**
	 * Removes all listeners from this list.
	 */
	public void clear() {
		size = 0;
		listeners = null;
	}
	/**
	 * Returns an array containing all the registered listeners,
	 * in the order in which they were added.
	 * <p>