Community
Participate
Working Groups
Example: import java.util.Comparator; public class FormatterBug { // private final Comparator<Long> findBlockIndexByTimeComparator = (t, // k)-> Long.compare(t, k); private final Comparator<Long> findBlockIndexByTimeComparator = (t, k) -> Long.compare(t, k); public FormatterBug() { } } The Ctor should not be indented so far. This indentation is kept for the remaining file. Trigger with the first commented code or with the active.
I did some tests and I don't see the problem when invoking the formatter (through Ctrl+Shift+F), but only when pressing Enter in code to add new lines. Moving to jdt.text. Probably related to bug 476636. Frank, please let us know if I missed something.
Yes, right it is not about the formatter, it is about the indenter. If I want to keep the line break before the ->, the following is all wrongly indented. Select All, then indent: CTRL-A, CTRL+I Now with Eclipse 4.10 still the case.
Same behavior in 4.11.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.