java.lang.IllegalArgumentException looking for all references to a Constructor call

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

java.lang.IllegalArgumentException looking for all references to a Constructor call

Paul Bennett
When searching for all references to a constructor in a Groovy file (Shift-Command-G on the Mac, with a constructor definition selected), I get the following exception:

java.lang.IllegalArgumentException
        at org.eclipse.jdt.core.Signature.getTypeParameters(Signature.java:1422)
        at org.eclipse.jdt.core.Signature.getTypeParameters(Signature.java:1479)
        at org.eclipse.jdt.internal.ui.viewsupport.JavaElementLabelComposer.appendMethodLabel(JavaElementLabelComposer.java:479)
        at org.eclipse.jdt.internal.ui.viewsupport.JavaElementLabelComposer.appendElementLabel(JavaElementLabelComposer.java:275)
        at org.eclipse.jdt.ui.JavaElementLabels.getElementLabel(JavaElementLabels.java:508)
        at org.eclipse.jdt.ui.JavaElementLabels.getElementLabel(JavaElementLabels.java:481)
        at org.eclipse.jdt.internal.ui.search.JavaSearchQuery.getSearchPatternDescription(JavaSearchQuery.java:239)
        at org.eclipse.jdt.internal.ui.search.JavaSearchQuery.getResultLabel(JavaSearchQuery.java:215)
        at org.eclipse.jdt.internal.ui.search.JavaSearchResult.getLabel(JavaSearchResult.java:51)
        at org.eclipse.search.ui.text.AbstractTextSearchViewPage.getLabel(AbstractTextSearchViewPage.java:380)
        at org.eclipse.jdt.internal.ui.search.JavaSearchResultPage.getLabel(JavaSearchResultPage.java:462)
        at org.eclipse.search2.internal.ui.SearchView.updateLabel(SearchView.java:438)
        at org.eclipse.search.ui.text.AbstractTextSearchViewPage$UpdateUIJob.runInUIThread(AbstractTextSearchViewPage.java:161)
        at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)
        at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
        at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
        at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3586)
        at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3279)
        at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
        at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
        at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
        at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
        at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
        at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
        at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
        at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
        at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
        at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
        at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
        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:597)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1407)


It does work fine for a Java file. I looked on the buglist but couldn't find anything that looked like this.

-pb
Reply | Threaded
Open this post in threaded view
|

Re: java.lang.IllegalArgumentException looking for all references to a Constructor call

Andrew Eisenberg
Hi,

This is definitely a bug.  Can you send over a small example that
reproduces your problem?  We have some test cases for this, but it
looks like there are some cases that we have missed.

On Wed, Apr 27, 2011 at 2:43 PM, Paul Bennett <[hidden email]> wrote:

> When searching for all references to a constructor in a Groovy
> file (Shift-Command-G on the Mac, with a constructor definition selected), I
> get the following exception:
> java.lang.IllegalArgumentException
>         at
> org.eclipse.jdt.core.Signature.getTypeParameters(Signature.java:1422)
>         at
> org.eclipse.jdt.core.Signature.getTypeParameters(Signature.java:1479)
>         at
> org.eclipse.jdt.internal.ui.viewsupport.JavaElementLabelComposer.appendMethodLabel(JavaElementLabelComposer.java:479)
>         at
> org.eclipse.jdt.internal.ui.viewsupport.JavaElementLabelComposer.appendElementLabel(JavaElementLabelComposer.java:275)
>         at
> org.eclipse.jdt.ui.JavaElementLabels.getElementLabel(JavaElementLabels.java:508)
>         at
> org.eclipse.jdt.ui.JavaElementLabels.getElementLabel(JavaElementLabels.java:481)
>         at
> org.eclipse.jdt.internal.ui.search.JavaSearchQuery.getSearchPatternDescription(JavaSearchQuery.java:239)
>         at
> org.eclipse.jdt.internal.ui.search.JavaSearchQuery.getResultLabel(JavaSearchQuery.java:215)
>         at
> org.eclipse.jdt.internal.ui.search.JavaSearchResult.getLabel(JavaSearchResult.java:51)
>         at
> org.eclipse.search.ui.text.AbstractTextSearchViewPage.getLabel(AbstractTextSearchViewPage.java:380)
>         at
> org.eclipse.jdt.internal.ui.search.JavaSearchResultPage.getLabel(JavaSearchResultPage.java:462)
>         at
> org.eclipse.search2.internal.ui.SearchView.updateLabel(SearchView.java:438)
>         at
> org.eclipse.search.ui.text.AbstractTextSearchViewPage$UpdateUIJob.runInUIThread(AbstractTextSearchViewPage.java:161)
>         at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)
>         at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
>         at
> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
>         at
> org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3586)
>         at
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3279)
>         at
> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
>         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
>         at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
>         at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
>         at
> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>         at
> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
>         at
> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
>         at
> org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
>         at
> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>         at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
>         at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
>         at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
>         at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
>         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:597)
>         at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
>         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
>         at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
>
> It does work fine for a Java file. I looked on the buglist but couldn't find
> anything that looked like this.
> -pb

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: java.lang.IllegalArgumentException looking for all references to a Constructor call

Paul Bennett
Sure. I'll see if I can reproduce with an example. I have a login on the codehaus JIRA - shall I just submit the bug if I can?

-pb

"People will do whatever proves what they believe"

On Apr 27, 2011, at 5:48 PM, Andrew Eisenberg wrote:

> Hi,
>
> This is definitely a bug.  Can you send over a small example that
> reproduces your problem?  We have some test cases for this, but it
> looks like there are some cases that we have missed.
>
> On Wed, Apr 27, 2011 at 2:43 PM, Paul Bennett <[hidden email]> wrote:
>> When searching for all references to a constructor in a Groovy
>> file (Shift-Command-G on the Mac, with a constructor definition selected), I
>> get the following exception:
>> java.lang.IllegalArgumentException
>>         at
>> org.eclipse.jdt.core.Signature.getTypeParameters(Signature.java:1422)
>>         at
>> org.eclipse.jdt.core.Signature.getTypeParameters(Signature.java:1479)
>>         at
>> org.eclipse.jdt.internal.ui.viewsupport.JavaElementLabelComposer.appendMethodLabel(JavaElementLabelComposer.java:479)
>>         at
>> org.eclipse.jdt.internal.ui.viewsupport.JavaElementLabelComposer.appendElementLabel(JavaElementLabelComposer.java:275)
>>         at
>> org.eclipse.jdt.ui.JavaElementLabels.getElementLabel(JavaElementLabels.java:508)
>>         at
>> org.eclipse.jdt.ui.JavaElementLabels.getElementLabel(JavaElementLabels.java:481)
>>         at
>> org.eclipse.jdt.internal.ui.search.JavaSearchQuery.getSearchPatternDescription(JavaSearchQuery.java:239)
>>         at
>> org.eclipse.jdt.internal.ui.search.JavaSearchQuery.getResultLabel(JavaSearchQuery.java:215)
>>         at
>> org.eclipse.jdt.internal.ui.search.JavaSearchResult.getLabel(JavaSearchResult.java:51)
>>         at
>> org.eclipse.search.ui.text.AbstractTextSearchViewPage.getLabel(AbstractTextSearchViewPage.java:380)
>>         at
>> org.eclipse.jdt.internal.ui.search.JavaSearchResultPage.getLabel(JavaSearchResultPage.java:462)
>>         at
>> org.eclipse.search2.internal.ui.SearchView.updateLabel(SearchView.java:438)
>>         at
>> org.eclipse.search.ui.text.AbstractTextSearchViewPage$UpdateUIJob.runInUIThread(AbstractTextSearchViewPage.java:161)
>>         at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)
>>         at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
>>         at
>> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
>>         at
>> org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3586)
>>         at
>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3279)
>>         at
>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
>>         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
>>         at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
>>         at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
>>         at
>> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>>         at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
>>         at
>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
>>         at
>> org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
>>         at
>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>>         at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
>>         at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
>>         at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
>>         at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
>>         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:597)
>>         at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
>>         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
>>         at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
>>
>> It does work fine for a Java file. I looked on the buglist but couldn't find
>> anything that looked like this.
>> -pb
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: java.lang.IllegalArgumentException looking for all references to a Constructor call

Andrew Eisenberg
Yes, submitting a bug report would be better, but it is fine to send
the information through this mailing list also.

On Wed, Apr 27, 2011 at 3:51 PM, Paul Bennett <[hidden email]> wrote:

> Sure. I'll see if I can reproduce with an example. I have a login on the codehaus JIRA - shall I just submit the bug if I can?
>
> -pb
>
> "People will do whatever proves what they believe"
>
> On Apr 27, 2011, at 5:48 PM, Andrew Eisenberg wrote:
>
>> Hi,
>>
>> This is definitely a bug.  Can you send over a small example that
>> reproduces your problem?  We have some test cases for this, but it
>> looks like there are some cases that we have missed.
>>
>> On Wed, Apr 27, 2011 at 2:43 PM, Paul Bennett <[hidden email]> wrote:
>>> When searching for all references to a constructor in a Groovy
>>> file (Shift-Command-G on the Mac, with a constructor definition selected), I
>>> get the following exception:
>>> java.lang.IllegalArgumentException
>>>         at
>>> org.eclipse.jdt.core.Signature.getTypeParameters(Signature.java:1422)
>>>         at
>>> org.eclipse.jdt.core.Signature.getTypeParameters(Signature.java:1479)
>>>         at
>>> org.eclipse.jdt.internal.ui.viewsupport.JavaElementLabelComposer.appendMethodLabel(JavaElementLabelComposer.java:479)
>>>         at
>>> org.eclipse.jdt.internal.ui.viewsupport.JavaElementLabelComposer.appendElementLabel(JavaElementLabelComposer.java:275)
>>>         at
>>> org.eclipse.jdt.ui.JavaElementLabels.getElementLabel(JavaElementLabels.java:508)
>>>         at
>>> org.eclipse.jdt.ui.JavaElementLabels.getElementLabel(JavaElementLabels.java:481)
>>>         at
>>> org.eclipse.jdt.internal.ui.search.JavaSearchQuery.getSearchPatternDescription(JavaSearchQuery.java:239)
>>>         at
>>> org.eclipse.jdt.internal.ui.search.JavaSearchQuery.getResultLabel(JavaSearchQuery.java:215)
>>>         at
>>> org.eclipse.jdt.internal.ui.search.JavaSearchResult.getLabel(JavaSearchResult.java:51)
>>>         at
>>> org.eclipse.search.ui.text.AbstractTextSearchViewPage.getLabel(AbstractTextSearchViewPage.java:380)
>>>         at
>>> org.eclipse.jdt.internal.ui.search.JavaSearchResultPage.getLabel(JavaSearchResultPage.java:462)
>>>         at
>>> org.eclipse.search2.internal.ui.SearchView.updateLabel(SearchView.java:438)
>>>         at
>>> org.eclipse.search.ui.text.AbstractTextSearchViewPage$UpdateUIJob.runInUIThread(AbstractTextSearchViewPage.java:161)
>>>         at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)
>>>         at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
>>>         at
>>> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
>>>         at
>>> org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3586)
>>>         at
>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3279)
>>>         at
>>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
>>>         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
>>>         at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
>>>         at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
>>>         at
>>> org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
>>>         at
>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
>>>         at
>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
>>>         at
>>> org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
>>>         at
>>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
>>>         at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
>>>         at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
>>>         at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
>>>         at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
>>>         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:597)
>>>         at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
>>>         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
>>>         at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
>>>
>>> It does work fine for a Java file. I looked on the buglist but couldn't find
>>> anything that looked like this.
>>> -pb
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>    http://xircles.codehaus.org/manage_email
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email