Bug 188136 - [javadoc][assist] Errors in org.eclipse.jdt.ui.JavaTypeCompletionProposalComputer
Summary: [javadoc][assist] Errors in org.eclipse.jdt.ui.JavaTypeCompletionProposalComp...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.3   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: 3.3 RC2   Edit
Assignee: Frederic Fusier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-21 13:19 EDT by Max Gilead CLA
Modified: 2007-05-24 11:38 EDT (History)
2 users (show)

See Also:
david_audel: review+
Olivier_Thomann: review+


Attachments
Test case, archive 1 (261.40 KB, application/x-gzip)
2007-05-21 14:19 EDT, Max Gilead CLA
no flags Details
Test case, archive 2, part 1/2 (1.91 MB, application/octet-stream)
2007-05-21 14:27 EDT, Max Gilead CLA
no flags Details
Test case, archive 2, part 2/2 (1.81 MB, application/octet-stream)
2007-05-21 14:29 EDT, Max Gilead CLA
no flags Details
Proposed patch (1.01 KB, patch)
2007-05-23 05:54 EDT, Frederic Fusier CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Max Gilead CLA 2007-05-21 13:19:32 EDT
I created a new workspace with single J2ME project (cldcapi11.jar and midpapi20.jar are on Libraries list). When completion proposal is activated I get three exceptions:

The 'org.eclipse.jdt.ui.JavaTypeCompletionProposalComputer' proposal computer from the 'org.eclipse.jdt.ui' plug-in did not complete normally. The extension has thrown a runtime exception.
java.lang.ArrayIndexOutOfBoundsException: 7
at org.eclipse.jdt.internal.codeassist.complete.CompletionJavadocParser.initLevelTags(CompletionJavadocParser.java:285)
at org.eclipse.jdt.internal.codeassist.complete.CompletionJavadocParser.<init>(CompletionJavadocParser.java:61)
at org.eclipse.jdt.internal.codeassist.complete.CompletionParser.createJavadocParser(CompletionParser.java:4338)
at org.eclipse.jdt.internal.compiler.parser.Parser.<init>(Parser.java:882)
at org.eclipse.jdt.internal.codeassist.impl.AssistParser.<init>(AssistParser.java:76)
at org.eclipse.jdt.internal.codeassist.complete.CompletionParser.<init>(CompletionParser.java:157)
at org.eclipse.jdt.internal.codeassist.CompletionEngine.<init>(CompletionEngine.java:379)
at org.eclipse.jdt.internal.core.Openable.codeComplete(Openable.java:122)
at org.eclipse.jdt.internal.core.CompilationUnit.codeComplete(CompilationUnit.java:327)
at org.eclipse.jdt.internal.core.CompilationUnit.codeComplete(CompilationUnit.java:320)
at org.eclipse.jdt.internal.ui.text.java.JavaCompletionProposalComputer.internalComputeCompletionProposals(JavaCompletionProposalComputer.java:180)
at org.eclipse.jdt.internal.ui.text.java.JavaCompletionProposalComputer.computeCompletionProposals(JavaCompletionProposalComputer.java:148)
at org.eclipse.jdt.internal.ui.text.java.JavaTypeCompletionProposalComputer.computeCompletionProposals(JavaTypeCompletionProposalComputer.java:79)
at org.eclipse.jdt.internal.ui.text.java.CompletionProposalComputerDescriptor.computeCompletionProposals(CompletionProposalComputerDescriptor.java:303)
at org.eclipse.jdt.internal.ui.text.java.CompletionProposalCategory.computeCompletionProposals(CompletionProposalCategory.java:264)
at org.eclipse.jdt.internal.ui.text.java.ContentAssistProcessor.collectProposals(ContentAssistProcessor.java:251)
at org.eclipse.jdt.internal.ui.text.java.ContentAssistProcessor.computeCompletionProposals(ContentAssistProcessor.java:220)
at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:1758)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:478)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$16(CompletionProposalPopup.java:475)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(CompletionProposalPopup.java:410)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:404)
at org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions(ContentAssistant.java:1587)
at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor$AdaptedSourceViewer.doOperation(CompilationUnitEditor.java:176)
at org.eclipse.ui.texteditor.ContentAssistAction$1.run(ContentAssistAction.java:82)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.ui.texteditor.ContentAssistAction.run(ContentAssistAction.java:80)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:185)
at org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:109)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:475)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:426)
at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:165)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:467)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:791)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:838)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:565)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:507)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:124)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1424)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1100)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1125)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1110)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1137)
at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:663)
at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:2384)
at org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:679)
at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1486)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4055)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3974)
at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:5590)
at org.eclipse.swt.widgets.Display.eventProc(Display.java:1193)
at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1484)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2970)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2365)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2329)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2204)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:624)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:497)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:436)
at org.eclipse.equinox.launcher.Main.run(Main.java:1162)



The 'org.eclipse.jdt.ui.JavaNoTypeCompletionProposalComputer' proposal computer from the 'org.eclipse.jdt.ui' plug-in did not complete normally. The extension has thrown a runtime exception.
java.lang.ArrayIndexOutOfBoundsException: 7
	at org.eclipse.jdt.internal.codeassist.complete.CompletionJavadocParser.initLevelTags(CompletionJavadocParser.java:285)
	at org.eclipse.jdt.internal.codeassist.complete.CompletionJavadocParser.<init>(CompletionJavadocParser.java:61)
	at org.eclipse.jdt.internal.codeassist.complete.CompletionParser.createJavadocParser(CompletionParser.java:4338)
	at org.eclipse.jdt.internal.compiler.parser.Parser.<init>(Parser.java:882)
	at org.eclipse.jdt.internal.codeassist.impl.AssistParser.<init>(AssistParser.java:76)
	at org.eclipse.jdt.internal.codeassist.complete.CompletionParser.<init>(CompletionParser.java:157)
	at org.eclipse.jdt.internal.codeassist.CompletionEngine.<init>(CompletionEngine.java:379)
	at org.eclipse.jdt.internal.core.Openable.codeComplete(Openable.java:122)
	at org.eclipse.jdt.internal.core.CompilationUnit.codeComplete(CompilationUnit.java:327)
	at org.eclipse.jdt.internal.core.CompilationUnit.codeComplete(CompilationUnit.java:320)
	at org.eclipse.jdt.internal.ui.text.java.JavaCompletionProposalComputer.internalComputeCompletionProposals(JavaCompletionProposalComputer.java:180)
	at org.eclipse.jdt.internal.ui.text.java.JavaCompletionProposalComputer.computeCompletionProposals(JavaCompletionProposalComputer.java:148)
	at org.eclipse.jdt.internal.ui.text.java.CompletionProposalComputerDescriptor.computeCompletionProposals(CompletionProposalComputerDescriptor.java:303)
	at org.eclipse.jdt.internal.ui.text.java.CompletionProposalCategory.computeCompletionProposals(CompletionProposalCategory.java:264)
	at org.eclipse.jdt.internal.ui.text.java.ContentAssistProcessor.collectProposals(ContentAssistProcessor.java:251)
	at org.eclipse.jdt.internal.ui.text.java.ContentAssistProcessor.computeCompletionProposals(ContentAssistProcessor.java:220)
	at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:1758)
	at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:478)
	at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$16(CompletionProposalPopup.java:475)
	at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(CompletionProposalPopup.java:410)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
	at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:404)
	at org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions(ContentAssistant.java:1587)
	at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor$AdaptedSourceViewer.doOperation(CompilationUnitEditor.java:176)
	at org.eclipse.ui.texteditor.ContentAssistAction$1.run(ContentAssistAction.java:82)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
	at org.eclipse.ui.texteditor.ContentAssistAction.run(ContentAssistAction.java:80)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
	at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:185)
	at org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:109)
	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:475)
	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:426)
	at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:165)
	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:467)
	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:791)
	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:838)
	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:565)
	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:507)
	at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:124)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1424)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1100)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1125)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1110)
	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1137)
	at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:663)
	at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:2384)
	at org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:679)
	at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1486)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4055)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:3974)
	at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
	at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:5590)
	at org.eclipse.swt.widgets.Display.eventProc(Display.java:1193)
	at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
	at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1484)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2970)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2365)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2329)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2204)
	at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:624)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:497)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:436)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1162)




The 'org.eclipse.jdt.ui.TemplateProposalComputer' proposal computer from the 'org.eclipse.jdt.ui' plug-in did not complete normally. The extension has thrown a runtime exception.
java.lang.ArrayIndexOutOfBoundsException: 7
	at org.eclipse.jdt.internal.codeassist.complete.CompletionJavadocParser.initLevelTags(CompletionJavadocParser.java:285)
	at org.eclipse.jdt.internal.codeassist.complete.CompletionJavadocParser.<init>(CompletionJavadocParser.java:61)
	at org.eclipse.jdt.internal.codeassist.complete.CompletionParser.createJavadocParser(CompletionParser.java:4338)
	at org.eclipse.jdt.internal.compiler.parser.Parser.<init>(Parser.java:882)
	at org.eclipse.jdt.internal.codeassist.impl.AssistParser.<init>(AssistParser.java:76)
	at org.eclipse.jdt.internal.codeassist.complete.CompletionParser.<init>(CompletionParser.java:157)
	at org.eclipse.jdt.internal.codeassist.CompletionEngine.<init>(CompletionEngine.java:379)
	at org.eclipse.jdt.internal.core.Openable.codeComplete(Openable.java:122)
	at org.eclipse.jdt.internal.core.CompilationUnit.codeComplete(CompilationUnit.java:327)
	at org.eclipse.jdt.internal.core.CompilationUnit.codeComplete(CompilationUnit.java:320)
	at org.eclipse.jdt.ui.text.java.JavaContentAssistInvocationContext.computeKeywordsAndContext(JavaContentAssistInvocationContext.java:296)
	at org.eclipse.jdt.ui.text.java.JavaContentAssistInvocationContext.getKeywordProposals(JavaContentAssistInvocationContext.java:129)
	at org.eclipse.jdt.internal.ui.text.java.TemplateCompletionProposalComputer.computeCompletionProposals(TemplateCompletionProposalComputer.java:102)
	at org.eclipse.jdt.internal.ui.text.java.CompletionProposalComputerDescriptor.computeCompletionProposals(CompletionProposalComputerDescriptor.java:303)
	at org.eclipse.jdt.internal.ui.text.java.CompletionProposalCategory.computeCompletionProposals(CompletionProposalCategory.java:264)
	at org.eclipse.jdt.internal.ui.text.java.ContentAssistProcessor.collectProposals(ContentAssistProcessor.java:251)
	at org.eclipse.jdt.internal.ui.text.java.ContentAssistProcessor.computeCompletionProposals(ContentAssistProcessor.java:220)
	at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:1758)
	at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:478)
	at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$16(CompletionProposalPopup.java:475)
	at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(CompletionProposalPopup.java:410)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
	at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:404)
	at org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions(ContentAssistant.java:1587)
	at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor$AdaptedSourceViewer.doOperation(CompilationUnitEditor.java:176)
	at org.eclipse.ui.texteditor.ContentAssistAction$1.run(ContentAssistAction.java:82)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
	at org.eclipse.ui.texteditor.ContentAssistAction.run(ContentAssistAction.java:80)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
	at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:185)
	at org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:109)
	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:475)
	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:426)
	at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:165)
	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:467)
	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:791)
	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:838)
	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:565)
	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:507)
	at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:124)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1424)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1100)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1125)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1110)
	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1137)
	at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:663)
	at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:2384)
	at org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:679)
	at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1486)
	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4055)
	at org.eclipse.swt.widgets.Display.windowProc(Display.java:3974)
	at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
	at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:5590)
	at org.eclipse.swt.widgets.Display.eventProc(Display.java:1193)
	at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
	at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1484)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2970)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2365)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2329)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2204)
	at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)


Linux/GTK
Eclipse 3.3M7 (I20070503-1400)
Tested with JDK 5-7:
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
Java(TM) SE Runtime Environment (build 1.7.0-ea-b12)
Comment 1 Frederic Fusier CLA 2007-05-21 13:34:09 EDT
Can you provide a small example of the code where you performed the completion to help us to reproduce?
Thanks
Comment 2 Max Gilead CLA 2007-05-21 14:18:59 EDT
Of course Frederic, I was just preparing a test case. I had to split it into three parts since the archive was too big for bugzilla.

There are two tarballs: test.tar.gz with all files except .metadata/.plugins/org.eclipse.jdt.core/1779200859.index . The second part is split into two pieces: test_org.eclipse.jdt.core_index.tar.gz_1 and test_org.eclipse.jdt.core_index.tar.gz_2. To recreate real tarball you should:

cat test_org.eclipse.jdt.core_index.tar.gz_1 test_org.eclipse.jdt.core_index.tar.gz_2 > test_org.eclipse.jdt.core_index.tar.gz

Both tarballs should be extracted into the same directory.

Sorry for the inconvenience but it's bugzilla's fault :P
Comment 3 Max Gilead CLA 2007-05-21 14:19:55 EDT
Created attachment 68007 [details]
Test case, archive 1
Comment 4 Max Gilead CLA 2007-05-21 14:27:40 EDT
Created attachment 68008 [details]
Test case, archive 2, part 1/2
Comment 5 Max Gilead CLA 2007-05-21 14:29:31 EDT
Created attachment 68010 [details]
Test case, archive 2, part 2/2
Comment 6 Frederic Fusier CLA 2007-05-22 08:41:25 EDT
Unfortunately installing your example results in lot of compiler errors due to missing type references (I'm currently not granted to get the J2ME product)...
I also do not know where did you perform the completion when you got this problem.

Some questions which may avoid me to get this specific product:
1) What are your compiler compliance and the JRE you refer to in your project?
2) Can you reproduce same error without the references to J2ME libs?
Comment 7 Max Gilead CLA 2007-05-22 09:29:31 EDT
> Unfortunately installing your example results in lot of compiler errors
Yes, I just copied some files to this project and intended to work on it. It would not work on compile anyway, even with correct libraries installed.

> (I'm currently not granted to get the J2ME product)
Maybe you can get PhoneME release? It's basically the same thing as WTK but packaged and licensed differently. It can be downloaded from https://phoneme.dev.java.net/downloads_page.html and is released under the GNU GPL.

> I also do not know where did you perform the completion when you got this
problem.
Class TestCanvas:
g.setColor(0xff, 0xff, 0xff);
g.fillRect(0, 0, g.| <--- that's where I tried to activate autocompletion

Some questions which may avoid me to get this specific product:
> 1) What are your compiler compliance and the JRE you refer to in your project?
Compiler compliance settings are default for Eclipse 3.3M7 -- I created new workspace. I tried it with the JREs mentioned above, but workspace has been created when running JDK7. I know it's early access version but I've been running it for quite some time doing regular development and encountered no problems at all.

> 2) Can you reproduce same error without the references to J2ME libs?
No, I can't even reproduce it with the same sources copied to new workspace/project. It must be something wrong with this exact project metafiles.
Comment 8 Max Gilead CLA 2007-05-22 09:30:43 EDT
> 2) Can you reproduce same error without the references to J2ME libs?
Sorry, I misread your question. I don't know if this error occurs without J2ME libs in the project. I'll try when I get access to my development machine.
Comment 9 Frederic Fusier CLA 2007-05-22 12:07:09 EDT
Completion works well for me using 3.3 RC1 on your sample at the location you indicated. I think there's really something broken in your workspace because:
1) you cannot reproduce the problem in another workspace
2) the exception occurred in Javadoc completion code although your source didn't have any javadoc comment...

One other question is there attached source with the J2ME libraries?
Comment 10 Frederic Fusier CLA 2007-05-22 13:16:54 EDT
OK, I can reproduce your problem after having manually changed the compiler compliance to 1.7... Didn't you also change it manually or during a debug session as the compiler preference page do not propose this value...!?
Comment 11 Max Gilead CLA 2007-05-22 14:14:20 EDT
Err... no, I did not. Actually I wasn't even aware there is a 1.7 compiler compliance level available. As I said -- it's a fresh workspace just as Eclipse created it. All I did was creating a new project in it. Ok, summarizing:

1. I manually created workspace directory (test)
2. I manually created project directory (test/MIDP_minimal)
3. Copied files into test/MIDP_minimal directory
4. Launched second Eclipse instance (one was already running on my base workspace)
5. Created new project named MIDP_minimal
6. Stared editing which ended with the exceptions above

This new workspace is a subdirectory of my main workspace (with compiler level set to 6.0). My main workspace is ~/Projects directory, new workspace was ~/Projects/BitCruncher/test. I don't know if it's supported or no but I did it before a lot of times and everything worked fine.

The J2ME library jar files contain no javadoc or source files -- only binary .class files.
Comment 12 Max Gilead CLA 2007-05-22 14:21:38 EDT
Heh, I know why I wasn't aware of 7.0 compiler compliance level -- that's because there's no such thing in 3.3M7 I was using :)
Comment 13 Frederic Fusier CLA 2007-05-23 05:51:48 EDT
I do not know how this happened, however, I cannot see other way to reproduce the problem than specify a 1.7 compliance.

So, a simple test case is:
1) Create a java project
2) Manually set the compliance to 1.7 (modifying the org.eclipse.jdt.core.prefs
   file)
3) Create a class in the project
   public class Test {
	void foo(String str) {
		str.<|>
	}
   }
4) Complete a <|> location => you get the AIOOBE
Comment 14 Frederic Fusier CLA 2007-05-23 05:54:27 EDT
Created attachment 68306 [details]
Proposed patch

Simply add 1.7 (empty) support for Javadoc parsers
Comment 15 Frederic Fusier CLA 2007-05-23 05:56:11 EDT
No test case added. It's enough to run JavadocCompletionParserTest using 1.7 compliance to verify that this bug is fixed...
Comment 16 Olivier Thomann CLA 2007-05-23 07:43:34 EDT
+1
Comment 17 David Audel CLA 2007-05-23 08:40:17 EDT
+1
Comment 18 Frederic Fusier CLA 2007-05-23 12:06:06 EDT
Released for 3.3 RC2 in HEAD stream.
Comment 19 Jerome Lanneluc CLA 2007-05-24 11:38:24 EDT
Verified for 3.3RC2 using I20070524-0010.