Bug 129290

Summary: [quick fix] Assign to new... for arrays
Product: [Eclipse Project] JDT Reporter: Ilja Preuss <preuss>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.2   
Target Milestone: 3.2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Bug Depends on: 129330    
Bug Blocks:    

Description Ilja Preuss CLA 2006-02-24 02:29:04 EST
It would be nice if Eclipse for the following code

public class Test {
  public static void main(String[] args) {
    Object[] foo = new Object[10];
    foo[0];
  }
}

for the "foo[0]" line would provide the "Assign to new local variable/field" quick fixes.
Comment 1 Martin Aeschlimann CLA 2006-02-24 08:23:34 EST
We have a recovered AST here, but it looks a bit strange.
Comment 2 Martin Aeschlimann CLA 2006-06-09 04:09:10 EDT
this works now in 3.2