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.

Bug 240744

Summary: [80cat]Provide Lambda expression option in Listener generation style
Product: guibuilder Reporter: manikantannaren <manikantannaren>
Component: CodeAssignee: issues@guibuilder <issues>
Status: NEW ---    
Severity: normal CC: aymanaci
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Mac OS X   
Issue Type: ENHANCEMENT Exception Reporter:

Description manikantannaren 2014-01-21 10:32:07 UTC
With Java 8 we can use Lambda expression instead of anonymous inner classes. Listener generation should provide this since in a guarded block it is not possible to change using the hints actions.
Comment 1 carentrica 2014-05-05 06:42:17 UTC
Perhaps an option to use lamda expressions could be included in Options/Java/ Gui Builder in the 'Listener generatin style' options.

If this option is not selected, then the genereated code should include "Convert2Lambda" in @SuppressWarnings().
Comment 2 Tomas Pavek 2015-09-09 12:21:44 UTC
*** Bug 254925 has been marked as a duplicate of this bug. ***