Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 336043 - [content assist] Completing generic class should not always follow by '<...>'
Summary: [content assist] Completing generic class should not always follow by '<...>'
Status: CLOSED DUPLICATE of bug 301990
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-02 04:02 EST by Nanda Firdausi CLA
Modified: 2011-02-02 05:10 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 Nanda Firdausi CLA 2011-02-02 04:02:59 EST
Build Identifier: 

When I want to use static method of a generic class, I will type the first letters of the class and press Ctrl+Space. This is (annoyingly) will also give '<...>' at the end of the class name.

For example:

public class Test<T> {

    public static void testMethod() {
        
    }
    
    public static void main(String[] args) {
        Te_
    }

}

_ is the cursor location. Do Ctrl+Space and you'll get Test<T>. I then have to remove '<T>' and write '.testMethod'.

I think Eclipse should do better than this and give only generic behind class when it is needed. 

Reproducible: Always

Steps to Reproduce:
1. As explained in details
Comment 1 Dani Megert CLA 2011-02-02 05:10:26 EST

*** This bug has been marked as a duplicate of bug 301990 ***