Bug 5123

Summary: Lots of "cheese" after getting exception using code assist
Product: [Eclipse Project] JDT Reporter: Rodrigo Peretti <rodrigo>
Component: UIAssignee: Claude Knaus <Claude_Knaus>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P1    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Rodrigo Peretti CLA 2001-10-19 16:09:30 EDT
build 20011018 - Windows XP

After getting the following exception, I had to close Eclipse because "cheese" 
appeared everywhere. Things were drawn overlapped, etc. Tried to minimize and 
restore. Didn't work and kept getting the exception.

Go the exception using code assist. Could not reproduce.


Log: Fri Oct 19 15:03:20 EDT 2001
1 org.eclipse.core.resources 4 Unhandled exception caught in event loop.
Log: Fri Oct 19 15:03:20 EDT 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:1791)
	at org.eclipse.swt.custom.StyledText.getLocationAtOffset
(StyledText.java(Compiled Code))
	at org.eclipse.swt.custom.StyledText.getLocationAtOffset
(StyledText.java(Compiled Code))
	at 
org.eclipse.jdt.internal.ui.text.template.TemplateEditorPopup.updatePosition
(TemplateEditorPopup.java:263)
	at org.eclipse.jdt.internal.ui.text.template.TemplateEditorPopup.show
(TemplateEditorPopup.java:107)
	at org.eclipse.jdt.internal.ui.text.template.TemplateEditorPopup.open
(TemplateEditorPopup.java:125)
	at org.eclipse.jdt.internal.ui.text.template.TemplateProposal.apply
(TemplateProposal.java:97)
	at 
org.eclipse.jface.text.contentassist.CompletionProposalPopup.insertProposal
(CompletionProposalPopup.java:157)
	at 
org.eclipse.jface.text.contentassist.CompletionProposalPopup.insertSelectedProp
osal(CompletionProposalPopup.java:142)
	at 
org.eclipse.jface.text.contentassist.CompletionProposalPopup.proposalProcessEve
nt(CompletionProposalPopup.java:353)
	at 
org.eclipse.jface.text.contentassist.CompletionProposalPopup.processEvent
(CompletionProposalPopup.java:325)
	at 
org.eclipse.jface.text.contentassist.ContentAssistant$InternalListener.processE
vent(ContentAssistant.java:579)
	at org.eclipse.jface.text.TextViewer.handleVerifyEvent
(TextViewer.java:1660)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java
(Compiled Code))
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.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.custom.StyledText.modifyContent
(StyledText.java:4557)
	at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:5140)
	at org.eclipse.swt.custom.StyledText.doContent(StyledText.java:1756)
	at org.eclipse.swt.custom.StyledText.handleKey(StyledText.java:4135)
	at org.eclipse.swt.custom.StyledText.handleKeyDown
(StyledText.java:4111)
	at org.eclipse.swt.custom.StyledText$8.handleEvent
(StyledText.java:3884)
	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:658)
	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:433)
	at org.eclipse.core.launcher.Main.main(Main.java:306)
Comment 1 Claude Knaus CLA 2001-10-22 03:53:00 EDT
Inside which context did you invoke code assist? javadoc or java code?
Comment 2 Claude Knaus CLA 2001-10-22 05:33:10 EDT
found related bug in argument processing. removed feature in favor of new
template editor popup.
Comment 3 Rodrigo Peretti CLA 2001-10-22 09:48:09 EDT
I was using code assist in java code.
Comment 4 Claude Knaus CLA 2001-11-01 05:56:30 EST
fixed > 206