Bug 94077

Summary: IndexOutOfBounds applying patch
Product: [Eclipse Project] Platform Reporter: Rafael Chaves <eclipse>
Component: CompareAssignee: Andre Weinand <andre_weinand>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: darin.eclipse
Version: 3.1   
Target Milestone: 3.1 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch that causes the problem none

Description Rafael Chaves CLA 2005-05-08 23:12:12 EDT
n20050608

Looks a lot like bug 93901, which is supposed to be fixed since n20050607. Note
that the patch (will attach) that causes the problem was created using n20050606.

!ENTRY org.eclipse.ui 4 0 2005-05-08 23:01:34.346
!MESSAGE Index: 1, Size: 0
!STACK 0
java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
	at java.util.ArrayList.add(Unknown Source)
	at org.eclipse.compare.internal.patch.Patcher.doPatch(Patcher.java:733)
	at org.eclipse.compare.internal.patch.Patcher.patch(Patcher.java:620)
	at org.eclipse.compare.internal.patch.Patcher.patch(Patcher.java:607)
	at org.eclipse.compare.internal.patch.Patcher.apply(Patcher.java:897)
	at
org.eclipse.compare.internal.patch.PreviewPatchPage.updateTree(PreviewPatchPage.java:595)
	at
org.eclipse.compare.internal.patch.PreviewPatchPage.buildTree(PreviewPatchPage.java:514)
	at
org.eclipse.compare.internal.patch.PreviewPatchPage.setVisible(PreviewPatchPage.java:131)
	at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1030)
	at org.eclipse.jface.wizard.WizardDialog.access$2(WizardDialog.java:1013)
	at org.eclipse.jface.wizard.WizardDialog$4.run(WizardDialog.java:1003)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
	at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1001)
	at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:753)
	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:345)
	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:556)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2901)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2534)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:803)
	at org.eclipse.jface.window.Window.open(Window.java:781)
	at
org.eclipse.compare.internal.patch.CompareWithPatchAction.run(CompareWithPatchAction.java:65)
	at org.eclipse.compare.internal.BaseCompareAction.run(BaseCompareAction.java:26)
...
Comment 1 Rafael Chaves CLA 2005-05-08 23:13:31 EDT
Created attachment 20818 [details]
patch that causes the problem
Comment 2 Andre Weinand CLA 2005-05-09 08:35:10 EDT
fixed for I20050509
Comment 3 Andre Weinand CLA 2005-05-09 09:27:06 EDT
*** Bug 94108 has been marked as a duplicate of this bug. ***