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 241502 - Rename parameter does not work in lambda
Summary: Rename parameter does not work in lambda
Status: RESOLVED DUPLICATE of bug 240912
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-06 16:46 UTC by Jiri Prox
Modified: 2014-02-06 19:37 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-02-06 16:46:38 UTC
Parameter rename does not work in lambda expression when the type is not explicitly set.

Steps to reproduce:
1) have a code:
        Iface i1 = (String a/*0*/)-> {return a+"";};
	Iface i2 = a/*1*/-> {return a/*2*/+"";};

2) put cursor at position /*1*/

-> ctrl-R does nothing

3) put cursor at position /*2*/
-> ctrl-R renames 'a' at position /*0*/
(note that mark occurrences are also invalid)


Product Version: NetBeans IDE Dev (Build 201402040001)
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 Ralph Ruijs 2014-02-06 19:37:11 UTC

*** This bug has been marked as a duplicate of bug 240912 ***