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 242827 - [Change method parameter] Mandatory braces not added
Summary: [Change method parameter] Mandatory braces not added
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-12 11:48 UTC by Jiri Prox
Modified: 2014-04-18 02:41 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 Jiri Prox 2014-03-12 11:48:28 UTC
Braces are not added when adding second parameter to lambda.

Steps to reproduce:
1) have a code:
@FunctionalInterface
public interface Function {
    
    static Function idn = a -> a;
    
    String convert(String a);
        
}

2) change method parameter of convert method, add parameter
->
@FunctionalInterface
public interface Function {
    
    static Function idn = a, par1 -> a;  // here should be (a, par1) -> a
    
    String convert(String a, Object par1);
    
    
} 


Product Version: NetBeans IDE 8.0 (Build 201403101706)
Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b70
Runtime: Java(TM) SE Runtime Environment 1.8.0-b132
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\8.0
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\8.0
Comment 1 Ralph Ruijs 2014-04-16 08:55:58 UTC
changeset   : 40452c81d4d1
author      : Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
date        : Wed Apr 16 10:54:25 CEST 2014
summary     : #242827 - [Change method parameter] Mandatory braces not added
Comment 2 Quality Engineering 2014-04-18 02:41:49 UTC
Integrated into 'main-silver', will be available in build *201404180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/40452c81d4d1
User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Log: #242827 - [Change method parameter] Mandatory braces not added