Bug 74286 - IllegalArgumentException during codeselect
Summary: IllegalArgumentException during codeselect
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.1 M3   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-20 10:18 EDT by Philipe Mulet CLA
Modified: 2004-11-04 05:49 EST (History)
0 users

See Also:


Attachments
Archive containing test sources (2.42 KB, application/octet-stream)
2004-09-20 10:20 EDT, Philipe Mulet CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philipe Mulet CLA 2004-09-20 10:18:00 EDT
Build 20040914

When selecting message send #add (38:32 -> 38:35) in attached testcase, the 
following exception occurs.

!ENTRY org.eclipse.ui 4 0 Sep 20, 2004 16:08:37.806
!MESSAGE java.lang.? extends TemplateChangeListener
!STACK 0
java.lang.IllegalArgumentException: java.lang.? extends TemplateChangeListener
        at org.eclipse.jdt.core.Signature.createCharArrayTypeSignature
(Signature.java:589)
        at org.eclipse.jdt.core.Signature.createTypeSignature
(Signature.java:561)
        at org.eclipse.jdt.core.Signature.createTypeSignature
(Signature.java:842)
        at org.eclipse.jdt.internal.core.SelectionRequestor.acceptBinaryMethod
(SelectionRequestor.java:86)
        at org.eclipse.jdt.internal.core.SelectionRequestor.acceptMethod
(SelectionRequestor.java:269)
        at org.eclipse.jdt.internal.codeassist.SelectionEngine.selectFrom
(SelectionEngine.java:670)
        at org.eclipse.jdt.internal.codeassist.SelectionEngine.select
(SelectionEngine.java:532)
        at org.eclipse.jdt.internal.core.Openable.codeSelect(Openable.java:142)
        at org.eclipse.jdt.internal.core.CompilationUnit.codeSelect
(CompilationUnit.java:303)
        at org.eclipse.jdt.internal.core.CompilationUnit.codeSelect
(CompilationUnit.java:297)
        at org.eclipse.jdt.internal.ui.actions.SelectionConverter.codeResolve
(SelectionConverter.java:219)
        at org.eclipse.jdt.internal.ui.actions.SelectionConverter.codeResolve
(SelectionConverter.java:153)
        at org.eclipse.jdt.internal.ui.actions.SelectionConverter.codeResolve
(SelectionConverter.java:162)
        at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:125)
        at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun
(SelectionDispatchAction.java:216)
        at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run
(SelectionDispatchAction.java:188)
        at org.eclipse.jface.action.Action.runWithEvent(Action.java:988)
        at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:143)
        at org.eclipse.ui.internal.commands.Command.execute(Command.java:135)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand
(WorkbenchKeyboard.java:463)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press
(WorkbenchKeyboard.java:956)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent
(WorkbenchKeyboard.java:997)
        at 
org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings
(WorkbenchKeyboard.java:541)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$2
(WorkbenchKeyboard.java:488)
        at org.eclipse.ui.internal.keys.WorkbenchKeyboard$1.handleEvent
(WorkbenchKeyboard.java:241)
        at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
        at org.eclipse.swt.widgets.Display.filterEvent(Display.java:748)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:795)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:820)
        at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:805)
        at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1736)
        at org.eclipse.swt.widgets.Control.sendKeyEvent(Control.java:1732)
        at org.eclipse.swt.widgets.Control.WM_KEYDOWN(Control.java:3541)
        at org.eclipse.swt.widgets.Control.windowProc(Control.java:3003)
        at org.eclipse.swt.widgets.Display.windowProc(Display.java:3349)
        at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
        at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1472)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2440)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1435)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1406)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
(Workbench.java:263)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144)
        at org.eclipse.ui.internal.ide.IDEApplication.run
(IDEApplication.java:102)
        at org.eclipse.core.internal.runtime.PlatformActivator$1.run
(PlatformActivator.java:335)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:273)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:129)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.eclipse.core.launcher.Main.basicRun(Main.java:183)
        at org.eclipse.core.launcher.Main.run(Main.java:644)
        at org.eclipse.core.launcher.Main.main(Main.java:628)
java.lang.? extends TemplateChangeListener
Comment 1 Philipe Mulet CLA 2004-09-20 10:20:28 EDT
Created attachment 14643 [details]
Archive containing test sources

Selection must occur in TemplateCollection.java
Comment 2 David Audel CLA 2004-10-07 09:37:51 EDT
Fixed and tests added
  ResolveTests_1_5#test0022()
  ResolveTests_1_5#test0023()
Comment 3 Frederic Fusier CLA 2004-11-04 05:49:09 EST
Verified for 3.1 M3 with build I200411040010 + jdt.core HEAD