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

Bug 351853

Summary: [quick fix] 'Change type to List<String>' is offered on constructor invocation.
Product: [Eclipse Project] JDT Reporter: Deepak Azad <deepakazad>
Component: UIAssignee: Deepak Azad <deepakazad>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: daniel_megert, deepakazad, markus.kell.r
Version: 3.7Flags: markus.kell.r: review+
Target Milestone: 3.7.1   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
screenshot
none
fix+test none

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.