Community
Participate
Working Groups
------------------------------------------------------------- package p; import java.util.ArrayList; import java.util.List; class Diamond { void foo() { List<String> a= new ArrayList<>(); } } ------------------------------------------------------------- The ParameterizedType node for 'ArrayList<>' has source range as [123,10], the correct range should be [123,11]. This works correctly for 'ArrayList<String>', i.e. when the type parameter is available. (I observed this in AST view plug-in. You will need to get the source of the plug-in from BETA_JAVA7 branch from the cvs location mentioned in http://www.eclipse.org/jdt/ui/astview/index.php.)
I will take a look at this.
Created attachment 196725 [details] Proposed fix + regression test
Olivier, Can you please review the patch?
Patch looks good. I added a comment to explain why '<' can be found as a token. Committed to BETA_JAVA7 branch.
Thanks Olivier.
Verified