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.
import java.awt.event.ActionEvent; import javax.swing.JButton; public class C { JButton btn; void init() { btn.addActionListener((ActionEvent e) -> { System.out.println("Btn clicked!"); }); } } Applying "Use anonymous inner class" converts code to: void init() { btn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { System.out.println("Btn clicked!"); } }); } I would expect that the method 'actionPerformed' should be annotated with @Override annotation, other IDEs add this annotation.