Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 424097 - [1.8][content assist] switch statement shown as a possible code completion in lambda params
Summary: [1.8][content assist] switch statement shown as a possible code completion in...
Status: RESOLVED DUPLICATE of bug 424088
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.4   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: BETA J8   Edit
Assignee: Srikanth Sankaran CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-16 04:08 EST by Manoj N Palat CLA
Modified: 2013-12-16 04:19 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Manoj N Palat CLA 2013-12-16 04:08:18 EST
import java.util.Comparator;
interface I {
	public void doit();
}

class X {
	public Comparator<String> bar() {
		Comparator<String> c  = (String s1, String s/*here*/)  -> s1.compareToIgnoreCase(s2);
		return c;
	}
}

Press <Ctrl-Space> before /*here*/ and switch is shown as a choice (so does synchronized)
See Bug 424088 as well (these may be related)
Comment 1 Srikanth Sankaran CLA 2013-12-16 04:19:28 EST
Same as bug 424088.

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