Bug 272148

Summary: [assist] Constructors with an array as parameter type are not proposed
Product: [Eclipse Project] JDT Reporter: David Audel <david_audel>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: srikanth_sankaran
Version: 3.5   
Target Milestone: 3.5 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed patch none

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.