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

Bug 508865

Summary: Code completion breaks following a lambda which contains a do-while loop
Product: [Eclipse Project] JDT Reporter: Matthew DOnofrio <artist>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: gautier.desaintmartinlacaze, stephan.herrmann
Version: 4.5.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard: stalebug

Description Matthew DOnofrio CLA 2016-12-07 21:01:02 EST
Attempting to perform code completion provides "No Default Proposals".

Example:

import java.util.concurrent.CompletableFuture;

public class Test {
public static void main(
   String[] args)
{
   CompletableFuture<Boolean> f = CompletableFuture.supplyAsync(() -> {
      do {
      }
      while (false);
      
      return true;
   });
   
   f. // Cannot code complete here
}
}
Comment 1 Eclipse Genie CLA 2020-02-08 12:16:29 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. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. 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.
Comment 2 Stephan Herrmann CLA 2020-02-08 13:35:12 EST
Note: I'd love to fix this, but no-one in the team seems to have an idea how to truly reconcile the completion parser with more and more workarounds and kludges for an increasingly opportunistic Java grammar. See e.g., bug 530556