Bug 23263 - ArrayIndexOutOfBoundsException in structured selection
Summary: ArrayIndexOutOfBoundsException in structured selection
Status: RESOLVED FIXED
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: Adam Kiezun CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 23264
Blocks:
  Show dependency tree
 
Reported: 2002-09-06 09:12 EDT by Adam Kiezun CLA
Modified: 2002-09-09 11:22 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Kiezun CLA 2002-09-06 09:12:18 EDT
package p;
class A {
	void f2(){}
	/***/
	void f1(){}
}

select the f1 method together with the comment and press 'ctrl+alt+left'

java.lang.ArrayIndexOutOfBoundsException: -2
	at 
org.eclipse.jdt.internal.ui.javaeditor.selectionactions.StructureSelectPreviousA
ction.getPreviousNode(StructureSelectPreviousAction.java:59)
	at 
org.eclipse.jdt.internal.ui.javaeditor.selectionactions.StructureSelectPreviousA
ction.internalGetNewSelectionRange(StructureSelectPreviousAction.java:43)
	at 
org.eclipse.jdt.internal.ui.javaeditor.selectionactions.StructureSelectionAction
.getNewSelectionRange(StructureSelectionAction.java:78)
	at 
org.eclipse.jdt.internal.ui.javaeditor.selectionactions.StructureSelectionAction
.run(StructureSelectionAction.java:57)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:749)
	at 
org.eclipse.ui.internal.registry.AcceleratorScope$AcceleratorAction.run
(AcceleratorScope.java:277)
	at org.eclipse.ui.internal.registry.AcceleratorScope.processKey
(AcceleratorScope.java:237)
	at org.eclipse.ui.internal.KeyBindingMenu$3.handleEvent
(KeyBindingMenu.java:87)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:77)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:833)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1622)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1368)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1256)
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:1239)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:775)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432)
	at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24)
Comment 1 Adam Kiezun CLA 2002-09-09 11:22:21 EDT
fxd