Community
Participate
Working Groups
This bug is for collecting Java 8 shortcomings in Code Recommenders (not JDT) - override context for default method implementations should be set. i.e. public interface Foo { void bar(List l) { l.$ } } override context should be Foo.bar()
On further inspection, this turns out not to be the case. the above example has the correct override context. There seems to be a problem with overrides context in closures, though. default void bar(List<String> list) { JButton show = new JButton("Show"); show.addActionListener((e) -> { System.out.println(list.$); }); } When triggering inside the closure body, the overrides context is set to Test.bar(). I would expect the context to be ActionListener.actionPerformed()
Full support for all Java 8 features will happen in Code Recommenders 2.3.0 (post-Mars), not in 2.2.0.