Bug 6857 - IllegalArgumentException showing search result
Summary: IllegalArgumentException showing search result
Status: RESOLVED DUPLICATE of bug 6855
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Erich Gamma CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-12-12 12:17 EST by Jerome Lanneluc CLA
Modified: 2001-12-12 12:47 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jerome Lanneluc CLA 2001-12-12 12:17:43 EST
Build 20011211

1. In a self-hosting workspace.
2. Make sure that 'Show Source of Seletected Element' is on.
3. Search for references to IResourceDelta.getResource()
4. Double-click on the first result (mine is 
\org.eclipse.core.resources\resources.jar - 
org.eclipse.core.internal.events.ResourceDelta.writeMarkerDebugString)
Observe: You get the following exception in the .log

Log: Wed Dec 12 18:18:18 CET 2001
1 org.eclipse.core.resources 4 Unhandled exception caught in event loop.
Log: Wed Dec 12 18:18:18 CET 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.swt.custom.StyledText.getLocationAtOffset
(StyledText.java:3295)
	at org.eclipse.jface.text.TextViewer.getWidthInPixels
(TextViewer.java:1460)
	at org.eclipse.jface.text.TextViewer.internalRevealRange
(TextViewer.java:1402)
	at org.eclipse.jface.text.TextViewer.revealRange(TextViewer.java:1341)
	at org.eclipse.ui.texteditor.AbstractTextEditor.selectAndReveal
(AbstractTextEditor.java:2100)
	at org.eclipse.ui.texteditor.AbstractTextEditor.gotoMarker
(AbstractTextEditor.java:2007)
	at org.eclipse.jdt.internal.ui.search.GotoMarkerAction.showInEditor
(GotoMarkerAction.java:166)
	at org.eclipse.jdt.internal.ui.search.GotoMarkerAction.showWithReuse
(GotoMarkerAction.java:130)
	at org.eclipse.jdt.internal.ui.search.GotoMarkerAction.show
(GotoMarkerAction.java:84)
	at org.eclipse.jdt.internal.ui.search.GotoMarkerAction.run
(GotoMarkerAction.java:59)
	at 
org.eclipse.search.internal.ui.SearchResultViewer.openCurrentSelection
(SearchResultViewer.java:413)
	at org.eclipse.search.internal.ui.SearchResultViewer.showResult
(SearchResultViewer.java:327)
	at 
org.eclipse.search.internal.ui.SearchResultViewer$2.widgetDefaultSelected
(SearchResultViewer.java:113)
	at org.eclipse.swt.widgets.TypedListener.handleEvent
(TypedListener.java:92)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:54)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:635)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1368)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1170)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:775)
	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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:42)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:28)
	at java.lang.reflect.Method.invoke(Method.java:327)
	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.UIMain.main(UIMain.java:52)
Comment 1 Erich Gamma CLA 2001-12-12 12:47:37 EST

*** This bug has been marked as a duplicate of 6855 ***