Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 336043

Summary: [content assist] Completing generic class should not always follow by '<...>'
Product: [Eclipse Project] JDT Reporter: Nanda Firdausi <nanda.firdausi>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert, nanda.firdausi
Version: 3.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

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 ***