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 247038

Summary: not allowing to collapse Lambda expression code blocks
Product: editor Reporter: FiruzzZ
Component: Code foldingAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 8.0   
Hardware: PC   
OS: Windows 7 x64   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: IDE log

Description FiruzzZ 2014-09-11 15:32:10 UTC
I move a project from jdk7 to 8, and started the refactoring, mostly forEach iteration and hint "Converts anonymous inner classes to lambda expressions or member references" and I noticed that with these new Lambda expressions blocks can't be collapsed, the IDE doesn't show the "[+]" icon 
 [+]
  |
  |
  |

Hope that I made myself clear..

Product Version = NetBeans IDE 8.0 (Build 201403101706)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_55
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.55-b03
Comment 1 FiruzzZ 2014-09-11 15:32:31 UTC
Created attachment 149149 [details]
IDE log
Comment 2 Svata Dedic 2015-01-09 11:25:58 UTC
Not a defect. Currently only methods + classes are collapsible in Java. Increasing enhancement priority.