| 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: | Core | Assignee: | 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: |
|
||||||
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. |
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 }