Bug 385058 - ArrayIndexOutOfBoundsException in InternalCompletionProposal#findConstructorParameterNames
Summary: ArrayIndexOutOfBoundsException in InternalCompletionProposal#findConstructorP...
Status: CLOSED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.2   Edit
Hardware: PC Windows Server 2008
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Ayushman Jain CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2012-07-13 10:02 EDT by Nicolas Bros CLA
Modified: 2020-03-26 08:05 EDT (History)
1 user (show)

See Also:


Attachments
stacktrace (9.45 KB, text/plain)
2012-07-13 10:02 EDT, Nicolas Bros CLA
no flags Details
Screenshot (6.98 KB, image/png)
2012-07-16 06:26 EDT, Tomasz Zarna CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Bros CLA 2012-07-13 10:02:27 EDT
Created attachment 218704 [details]
stacktrace

I got an ArrayIndexOutOfBoundsException exception in JDT that prevents completion from returning any results.
I was trying to invoke completion on:
BasicStroke stroke = new BasicStroke<complete here>
(with java.awt.BasicStroke imported)
I attached the stacktrace.


Eclipse Modeling Tools
Version: Juno Release
Build id: 20120606-2254
Comment 1 Nicolas Bros CLA 2012-07-13 10:07:33 EDT
Note: this is with JRE 1.7.0_02.
If I configure a JDK 1.7.0_02 (which contains sources) in "Preferences > Java > Installed JREs", then completion works.
Comment 2 Tomasz Zarna CLA 2012-07-16 06:26:45 EDT
Created attachment 218745 [details]
Screenshot

(In reply to comment #0)
> I was trying to invoke completion on:
> BasicStroke stroke = new BasicStroke<complete here>
> (with java.awt.BasicStroke imported)

Nicolas, is this reproducible for you? It works fine for me. I'm running with JRE7 ticked in the Installed JREs pref page.
Comment 3 Ayushman Jain CLA 2012-07-16 10:08:33 EDT
(In reply to comment #1)
> Note: this is with JRE 1.7.0_02.
> If I configure a JDK 1.7.0_02 (which contains sources) in "Preferences > Java >
> Installed JREs", then completion works.

Are you using source and compliance as 1.7? Is it possible for you to attach a test case here which will help us to reproduce the problem?
Comment 4 Eclipse Genie CLA 2020-03-26 08:05:01 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.