Bug 6855 - IllegalArgumentException in synchronize view
Summary: IllegalArgumentException in synchronize view
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Kai-Uwe Maetzel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 6857 6880 6905 6913 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-12-12 12:03 EST by Veronika Irvine CLA
Modified: 2001-12-14 06:31 EST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Veronika Irvine CLA 2001-12-12 12:03:54 EST
20011211
Windows 2000

Modify a java class.
Synchronize with team stream.
Double click on the class and select a single method that has changed.
Use the single step arrow toolitem to step through the changes.

Get the following Index out of bounds error:


Log: Wed Dec 12 11:22:29 EST 2001
1 org.eclipse.core.resources 4 Unhandled exception caught in event loop.
Log: Wed Dec 12 11:22:29 EST 2001
4 org.eclipse.ui 0 Index out of bounds
java.lang.IllegalArgumentException: Index out of bounds
	at org.eclipse.swt.SWT.error(SWT.java:1873)
	at org.eclipse.swt.SWT.error(SWT.java:1819)
	at org.eclipse.jface.text.TextViewer.getWidthInPixels(TextViewer.java
(Compiled Code))
	at org.eclipse.jface.text.TextViewer.getWidthInPixels(TextViewer.java
(Compiled Code))
	at org.eclipse.jface.text.TextViewer.internalRevealRange
(TextViewer.java:1402)
	at org.eclipse.jface.text.TextViewer.revealRange(TextViewer.java:1341)
	at org.eclipse.compare.contentmergeviewer.TextMergeViewer.reveal
(TextMergeViewer.java:2164)
	at org.eclipse.compare.contentmergeviewer.TextMergeViewer.revealDiff
(TextMergeViewer.java:2151)
	at org.eclipse.compare.contentmergeviewer.TextMergeViewer.setCurrentDiff
(TextMergeViewer.java:2072)
	at org.eclipse.compare.contentmergeviewer.TextMergeViewer.navigate
(TextMergeViewer.java:1971)
	at org.eclipse.compare.contentmergeviewer.TextMergeViewer.access$4
(TextMergeViewer.java:1934)
	at org.eclipse.compare.contentmergeviewer.TextMergeViewer$16.run
(TextMergeViewer.java:1517)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:452)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:407)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent
(ActionContributionItem.java(Compiled Code))
	at 
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent
(ActionContributionItem.java(Compiled Code))
	at 
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent
(ActionContributionItem.java(Compiled Code))
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled 
Code))
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled 
Code))
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java
(Compiled Code))
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java
(Compiled Code))
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java
(Compiled Code))
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:758)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:820)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:151)
	at org.eclipse.core.launcher.Main.run(Main.java:502)
	at org.eclipse.core.launcher.Main.main(Main.java:362)
Comment 1 Erich Gamma CLA 2001-12-12 12:33:21 EST
can't reproduce, do you have any more details on the steps.
Comment 2 Veronika Irvine CLA 2001-12-12 12:45:12 EST
1) create a new workspace
2) connect to dev.eclipse.org
3) add org.eclipse.swt version 2019 to your workspace (you can turn the build 
option off - it doesn't matter)
4) modify the Team properties to point at the Head stream
5) select org.eclipse.swt and Synchronize with the Head stream
6) In the catchup view select "Eclipse SWT/org/eclipse/swt/widgets/Display"
7) Double click on Display to get the Java Structure Compare
8) Select the method timerExec in the Java Structure Compare
9) Use the Select Next Change arrow to navigate through the changes

This is where I get the IllegalArgumentException.
Comment 3 Erich Gamma CLA 2001-12-12 12:47:38 EST
*** Bug 6857 has been marked as a duplicate of this bug. ***
Comment 4 Kai-Uwe Maetzel CLA 2001-12-12 13:47:15 EST
Patch immediately available at
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/jdt-ui-
home/patches/20011211.1/org.eclipse.ui.zip

Fixed in build > 20011212.
Comment 5 Erich Gamma CLA 2001-12-13 03:01:58 EST
*** Bug 6880 has been marked as a duplicate of this bug. ***
Comment 6 Erich Gamma CLA 2001-12-14 04:21:29 EST
*** Bug 6913 has been marked as a duplicate of this bug. ***
Comment 7 Erich Gamma CLA 2001-12-14 06:31:11 EST
*** Bug 6905 has been marked as a duplicate of this bug. ***