Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351853 - [quick fix] 'Change type to List<String>' is offered on constructor invocation.
Summary: [quick fix] 'Change type to List<String>' is offered on constructor invocation.
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.7.1   Edit
Assignee: Deepak Azad CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-12 10:32 EDT by Deepak Azad CLA
Modified: 2011-08-25 02:59 EDT (History)
3 users (show)

See Also:
markus.kell.r: review+


Attachments
screenshot (16.01 KB, image/png)
2011-07-12 10:32 EDT, Deepak Azad CLA
no flags Details
fix+test (5.01 KB, patch)
2011-08-10 23:00 EDT, Deepak Azad CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Deepak Azad CLA 2011-07-12 10:32:53 EDT
Created attachment 199503 [details]
screenshot

-------------------------------------------
List<String> list=null;
list= new ArrayList(); //QF on ArrayList
-------------------------------------------

The quick fix does not make sense here, interfaces and abstract types should not be proposed for constructor invocations.
Comment 1 Markus Keller CLA 2011-07-12 10:41:27 EDT
IIRC, this quick fix is new in 3.7, so marking this bug as 3.7.1 candidate.
Comment 2 Deepak Azad CLA 2011-08-10 23:00:09 EDT
Created attachment 201288 [details]
fix+test
Comment 3 Deepak Azad CLA 2011-08-10 23:00:35 EDT
Fixed in HEAD and 3.7.1.
Comment 4 Dani Megert CLA 2011-08-25 02:59:17 EDT
Verified in M20110824-0800 on Linux.