Community
Participate
Working Groups
While playing with the example from bug 343693 I noticed that new X| completes to new X<T>(param) This happens even if T is not in scope, creating bogus code (i.e., both parameters T and param must be manually specified). Moreover, if a bound is added to T, say "T extends Number", completion proposes new X<Number>(param) Wouldn't it be educative for users if we propose the new syntax new X<>(param) ? Please excuse, if this has been discussed before.
A more general solution is proposed in bug 283950. (Note that JDT/Core only proposes the types, the type arguments are inserted by JDT/Text) *** This bug has been marked as a duplicate of bug 283950 ***
*** This bug has been marked as a duplicate of bug 351444 ***