Bug 272148 - [assist] Constructors with an array as parameter type are not proposed
Summary: [assist] Constructors with an array as parameter type are not proposed
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.5 M7   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-14 09:45 EDT by David Audel CLA
Modified: 2009-04-28 02:56 EDT (History)
1 user (show)

See Also:


Attachments
Proposed patch (6.56 KB, patch)
2009-04-14 09:55 EDT, David Audel CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Audel CLA 2009-04-14 09:45:34 EDT
build I20090407-1430

1) create test/TestConstructor1.java
package test;
public class TestConstructor1 {
        public TestConstructor1(int[] i) {
        }
}
2) create test/Test.java
package test;
public class Test {
        public void foo(Object o) {
                new TestConstructor|
        }
}
3) co ctrl+space at |

the constructor is not proposed.
Comment 1 David Audel CLA 2009-04-14 09:55:02 EDT
Created attachment 131767 [details]
Proposed patch

This patch also contains a improvement of the performance of constructor completion but this improvement is small (<1%)
Comment 2 David Audel CLA 2009-04-14 09:58:09 EDT
Released for 3.5M7.

Test added
   CompletionTests#testConstructor7()
Comment 3 Srikanth Sankaran CLA 2009-04-28 02:56:46 EDT
Verified for 3.5M7 using I20090426-2000

Bug# 273976 has been raised as a followup.