This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
package lambdatests; import java.awt.event.ActionEvent; import javax.swing.JButton; public class MySecondLambda { void foo() { JButton btn = new JButton(); btn.addActionListener((ActionEvent e) -> System.out.println(e)); btn.addActionListener(this::actionPerformed); } public void actionPerformed(ActionEvent e) { } } If you try to find usages of method MySecondLambda.actionPerformed(ActionEvent) nothing is found. But in fact the usage is in code of: this::actionPerformed.
I should have mentioned that Java 1.8 in project is used.
Refactoring part fixed by: http://hg.netbeans.org/jet-main/rev/5d4a3004a2b0 When #235524 is fixed, scopes other then Current File should work as well.