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
private Object[] listeners = null;
	/**
	 * The empty array singleton instance, returned by getListeners()
	 * when size == 0.
	 */
	private static final Object[] EmptyArray = new Object[0];
	
	/**
	 * Creates a listener list with an initial capacity of 1.
	 */
	public ListenerList() {
		this(1);
	}
	
	/**
	 * Creates a listener list with the given initial capacity.
	 *
	 * @param capacity the number of listeners which this list can initially accept 
	 *    without growing its internal representation; must be at least 1
	 */
	public ListenerList(int capacity) {
		Assert.isTrue(capacity >= 1);
		this.capacity = capacity;
	}
	
	/**
	 * Adds the given listener to this list. Has no effect if an identical listener
	 * is already registered.
	 *
	 * @param listener the listener