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 241298 - It's not possible to enter a semicolon within a lambda body if it's on one line
Summary: It's not possible to enter a semicolon within a lambda body if it's on one line
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: PC Mac OS X
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-03 00:26 UTC by brettryan
Modified: 2014-02-19 02:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description brettryan 2014-02-03 00:26:00 UTC
Take the following lambda expression within a filter:

    .filter(m -> { return true; } )

This is only to serve a point that if you type the following:

    .filter(m -> { return true^)

where (^) represents the current cursor position ')' was inserted by the IDE automatically. If you now type ';' you end up with the following:

    .filter(m -> { return true);^

Where ^ represents the new cursor position.
Comment 1 Jiri Prox 2014-02-03 07:11:50 UTC
reproducible
Comment 2 Dusan Balek 2014-02-13 12:57:20 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/84d5bf7d1920
Comment 3 Quality Engineering 2014-02-19 02:46:31 UTC
Integrated into 'main-silver', will be available in build *201402190001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/84d5bf7d1920
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #241298: It's not possible to enter a semicolon within a lambda body if it's on one line - fixed.