Bug 120892 - [assist] inconsistent completions for constructors an methods
Summary: [assist] inconsistent completions for constructors an methods
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: 3.2 M6   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 120542 120894
  Show dependency tree
 
Reported: 2005-12-14 11:03 EST by Tom Hofmann CLA
Modified: 2006-03-28 10:00 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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