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 241699

Summary: [use explicit parameter type] Use explicit parameter type hint does not add braces
Product: java Reporter: Jiri Prox <jiriprox>
Component: HintsAssignee: Svata Dedic <sdedic>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description Jiri Prox 2014-02-11 13:29:56 UTC
Use explicit parameter type hint does not add braces

Steps to reproduce:
1) have lambda expression :
If f = x -> { return "";};

2) use hint to change to explicit parameter type

-> actual:
If f = int x -> { return "";};

-> expected
If f = (int x) -> { return "";};


Product Version: NetBeans IDE Dev (Build 201402070001)
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b65
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b123
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\dev
Comment 1 Svata Dedic 2014-08-13 14:50:00 UTC
Works for me in the current dev version. Most likely works also in 8.0.1RC