Bug 115902 - [content assist] Content assist in empty method parameter list inserts method again
Summary: [content assist] Content assist in empty method parameter list inserts method...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.2   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 3.2 M4   Edit
Assignee: Tom Hofmann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-10 15:26 EST by Markus Keller CLA
Modified: 2005-12-15 04:15 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2005-11-10 15:26:50 EST
I20051108-1011

public class Try {
    void m() {
        new String();
    }
}

Put caret to after "new String(" and press Ctrl+Space
Expected: proposals for constructors
Was: new String(String|);
Comment 1 Markus Keller CLA 2005-11-10 15:33:08 EST
Even "works" recursively and for methods:
    double take(int foo) {
        take(|)
        return foo;
    }

3x content assist at | gives:
    double take(int foo) {
        take(take(take(take())))
        return foo;
    }
Comment 2 Dani Megert CLA 2005-11-11 04:31:40 EST
I suspect wrong offset in the proposal.
Tom, please double-check.
Comment 3 Tom Hofmann CLA 2005-11-11 06:19:17 EST
- Set content assist to "insert", not "overwrite" to reproduce.
- Enable auto-insertion of single proposals

Fixed > 20051111

The reason for the breakage was a recent change in prefix replacement string
computation.
Comment 4 Markus Keller CLA 2005-12-13 06:29:42 EST
verifying...
Comment 5 Markus Keller CLA 2005-12-13 06:39:17 EST
Verified in I20051213-0010. Filed bug xxx for a similar problem.
Comment 6 Dani Megert CLA 2005-12-13 06:44:43 EST
bug xxx == bug 120542 
Comment 7 Dani Megert CLA 2005-12-15 04:15:18 EST
Re-verified in I20051214-2000.