Bug 129290 - [quick fix] Assign to new... for arrays
Summary: [quick fix] Assign to new... for arrays
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows 2000
: P3 enhancement (vote)
Target Milestone: 3.2   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 129330
Blocks:
  Show dependency tree
 
Reported: 2006-02-24 02:29 EST by Ilja Preuss CLA
Modified: 2006-06-09 04:09 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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