Community
Participate
Working Groups
Noticed this while testing the Oxygen.2 RC3 EPP package: Taken the following example (no compile errors), with the cursor indicated by the '$' sign: import java.util.TreeMap; public class Test { public static void main(String[] args) { new TreeMap<>($); } } I now type (a, b) -> { to start a lambda expression. Upon hitting the '{' the cursor and the curly brace move to an unexpected place: import java.util.TreeMap; public class Test { public static void main(String[] args) { new TreeMap<>((a, b) -> ) {$; } } Apparently, JDT thinks I want to implement an anonymous subclass of TreeMap at this point.
*** This bug has been marked as a duplicate of bug 520081 ***
*** This bug has been marked as a duplicate of bug 560919 ***