Community
Participate
Working Groups
Consider the following: public Item[] getItems() { Collection items = ..... return items; } There is of course a compile error on the return statement: cannot convert from Collection to Item[] It would be nice to have a quickfix to change this line to return (Item[]) items.toArray(new Item[items.size()]);
Move to JDT/UI
*** This bug has been marked as a duplicate of bug 144071 ***