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 - [80cat]Provide Lambda expression option in Listener generation style
Summary: [80cat]Provide Lambda expression option in Listener generation style
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.0
Hardware: PC Mac OS X
: P3 normal with 1 vote (vote)
Assignee: issues@guibuilder
URL:
Keywords:
: 254925 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-01-21 10:32 UTC by manikantannaren
Modified: 2015-09-09 12:21 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***