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
/*******************************************************************************
 * Copyright (c) 2000, 2003 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials 
 * are made available under the terms of the Common Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v10.html
 * 
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jface.util;
/**
 * This class is used to maintain a list of listeners, and
 * is used in the implementations of several classes within JFace
 * which allow you to register listeners of various kinds.
 * It is a fairly lightweight object, occupying minimal space when
 * no listeners are registered.
 * <p>
 * Note that the <code>add</code> method checks for and eliminates 
 * duplicates based on identity (not equality).  Likewise, the