Community
Participate
Working Groups
BETA_JAVA7 void foo() { HashMap<String, ArrayList<?>> field= new HashMap | content assist here } results in : HashMap<String, ArrayList<?>> field= new HashMap<String, ArrayList<?>>(); should be : HashMap<String, ArrayList<?>> field= new HashMap<>();
*** This bug has been marked as a duplicate of bug 283950 ***
Not a dup. Constructor completion with diamond is a separate issue.
So the idea is to insert <> where we can in 1.7 mode ? I think it would be nice if once we insert the (best guessed) type arguments by default, we enter linked mode on the type arguments and suggest alternatives in the linked mode popup. Something like what currently happens for method arguments...
(In reply to comment #3) > So the idea is to insert <> where we can in 1.7 mode ? Yes.
Created attachment 199552 [details] Fix (depends on JDT Core changes)
Fixed in BETA_JAVA7.
Verified using JDT feature patch v20110714-1300.