Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 518227

Summary: [1.8][quick assist] No quick assist/fix available for variables after stream with lambdas
Product: [Eclipse Project] JDT Reporter: Gerit Hofmann <gerit.hofmann>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: minor    
Priority: P3 CC: andreas.hoehmann
Version: 4.6   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: stalebug
Attachments:
Description Flags
Example code none

Description Gerit Hofmann CLA 2017-06-14 05:44:14 EDT
Created attachment 268900 [details]
Example code

eclipse.buildId=4.6.3.M20170301-0400
Eclipse Java Development Tools Version: 3.12.3.v20170301-0400


No Quick-Assist/Fix (CTRL-1) available for variables after stream with lambdas like:

/**
 * After the stream operations with lambdas no quick-fix available
 * for variables. 
 */
public void testQuickFixFail(){
  List<Object> elements = new ArrayList<Object>();
		
  // quick-fix available for variable elements

  List<Foo> foos = elements.stream()
    .filter(e -> e instanceof Foo)
    .map(e -> (Foo)e)
    .collect(Collectors.toList());

  // FIXME no quick-fix available for variables foos and elements

}
Comment 1 Eclipse Genie CLA 2019-12-19 14:17:39 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.