Bug 120892

Summary: [assist] inconsistent completions for constructors an methods
Product: [Eclipse Project] JDT Reporter: Tom Hofmann <eclipse>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, david_audel
Version: 3.2   
Target Milestone: 3.2 M6   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:
Bug Depends on:    
Bug Blocks: 120542, 120894    

Description Tom Hofmann CLA 2005-12-14 11:03:49 EST
I20051214-0010

Consider the CU below and invoke code assist behind the opening parentheses of the method and the constructor call, respectively:

======== Try.java ========
package pr120542;

public class Try {
    void m() {
    	wait(
        new String(
    }
}
==========================

- The completion proposals received for the 'wait' method all have an empty completion, while the proposals for the 'String' ctor all have a completion consisting of a single closing parenthesis: ")".

This seems inconsistent to me and causes bug 120542.
Comment 1 Dani Megert CLA 2006-03-22 04:47:26 EST
What's the ETA for this? Is this planned for 3.2?
Comment 2 David Audel CLA 2006-03-22 08:58:10 EST
I prepare a fix to always propose an empty completion string.


Comment 3 David Audel CLA 2006-03-22 09:47:32 EST
Fixed.

Single parenthesis aren't proposed anymore, an empty completion is proposed instead.
Comment 4 Olivier Thomann CLA 2006-03-28 10:00:10 EST
Verified using I20060328-0010 for 3.2M6