Project: Eclipse_Platform_UI
Bug 52336 [Viewers] Internal error at start of debug session
Reported: 2004-02-18 01:04:32 | Status: verified fixed

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)

Files changed in fix:
bundles/org.eclipse.jface/src/org/eclipse/jface/util/ListenerList.java