Community
Participate
Working Groups
FUP of bug 340747. For this case ArrayList<Map<String, String>> l2= new ArrayList<Map<String, String>>(); ^^^ The error range just covers "Map". It is more relevant to cover "ArrayList", since thats the generic type for which the type params have been redundantly specified. The other option is to cover the entire type parameters ie. "Map<String, String>", but that range is difficult to find in JDT/core (will entail a recursive call for nested parameterized types, and also difficult to process by JDT/UI. So choosing the first option
Yup, the first option makes it easy for me to fix bug 349336.
Created attachment 200056 [details] proposed fix + updated tests Changes error range to report the parameterized type for which the redundant type params are specified.
(In reply to comment #2) > Created attachment 200056 [details] [diff] > proposed fix + updated tests The patch is good from UI perspective.
Created attachment 200058 [details] proposed fix with slight change A few refactoring changes suggested by Satyam.
Satyam, can you please set the review flag? Thanks!
Released in BETA_JAVA7 branch
changes look good. +1
Verified for 3.8M1 using build I20110729-1200