Bug 355361 - [content assist] Content assist propose an assignement with type 'null'
Summary: [content assist] Content assist propose an assignement with type 'null'
Status: CLOSED DUPLICATE of bug 172925
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.8   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-22 06:42 EDT by Romain Dervaux CLA
Modified: 2011-08-22 08:45 EDT (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 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 ***