Bug 120542 - [content assist] Content Assist in constructor inserts type name again
Summary: [content assist] Content Assist in constructor inserts type name again
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2 M4   Edit
Assignee: Tom Hofmann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 120892
Blocks:
  Show dependency tree
 
Reported: 2005-12-13 06:39 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-12-13 06:39:02 EST
I20051213-0010

Found while verifying bug 115902:

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

With default settings, set caret to before "a" and press Ctrl+Space. Selecting one of the constructors inserts text "String()". Expected: parameter hints, no document change.

With 'Insert common prefixes' enabled, "String" is inserted without a popup.

Unlike bug 115902, I can only reproduce this one with constructors, not methods.
Comment 1 Dani Megert CLA 2005-12-13 06:46:08 EST
Tom,
please investigate.

Not critical for M4. Time permitting and depending on the complexity of the fix.
Comment 2 Tom Hofmann CLA 2005-12-14 11:07:35 EST
Hm, the proposals received from core are different for constructors and methods.
Comment 3 Tom Hofmann CLA 2005-12-14 11:20:52 EST
Added a workaround for now, see bug 120894. Fixed > 20051214
Comment 4 Dani Megert CLA 2005-12-14 15:42:06 EST
Released into I20051214-1600.
Comment 5 Dani Megert CLA 2005-12-15 04:15:25 EST
Verified in I20051214-2000.