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

Bug 355361

Summary: [content assist] Content assist propose an assignement with type 'null'
Product: [Eclipse Project] JDT Reporter: Romain Dervaux <romain.dervaux>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert
Version: 3.8   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Romain Dervaux CLA 2011-08-22 06:42:23 EDT
Build Identifier: 20110615-0604

For a parameterized list like this : 
List<? extends Integer> liste = null; 

Content Assist propose, for the methods :
    add(null e)
    add(int index, null e)
    addAll(null c)
    addAll(int index, null c)
    set(int index, null element) 
to deal with elements with a 'null' type.

Reproducible: Always

Steps to Reproduce:
1. Create class
public class Test {
    
    private void test () {
        List<? extends Integer> liste = null;
    }
} 
2. Under the declaration of 'liste', type 'liste.'
3. Content Assist appears, proposing the methods with type 'null'
Comment 1 Dani Megert CLA 2011-08-22 08:45:58 EDT
Can reproduce in

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