Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 407106 - [1.8][code assist] Code assist failing for lambda expression with parameter of function call body
Summary: [1.8][code assist] Code assist failing for lambda expression with parameter o...
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.3   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: BETA J8   Edit
Assignee: Srikanth Sankaran CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 405133 (view as bug list)
Depends on:
Blocks: 402079
  Show dependency tree
 
Reported: 2013-05-02 15:26 EDT by ANIRBAN CHAKRABORTY CLA
Modified: 2013-11-30 19:57 EST (History)
3 users (show)

See Also:
srikanth_sankaran: review? (anchakrk)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ANIRBAN CHAKRABORTY CLA 2013-05-02 15:26:22 EDT
interface Foo { 
	void run1(int s1, int s2);
}

interface X extends Foo{
	
  static Foo f = (first, second) -> System.out.print(firs<ctrl-space>);
    		
}

Code assist not making suggestion.
Comment 1 ANIRBAN CHAKRABORTY CLA 2013-05-02 15:27:22 EDT
I'll be working on this.
Comment 2 Srikanth Sankaran CLA 2013-09-28 21:42:34 EDT
Test case from bug 416996, please also include this in fix.

public class C1 {
	I2 i2= () -> sys| // invoke <Ctrl+space> here
}
@FunctionalInterface
interface I2{
	public void foo();
}
Comment 3 Srikanth Sankaran CLA 2013-09-28 21:42:57 EDT
*** Bug 416996 has been marked as a duplicate of this bug. ***
Comment 4 Srikanth Sankaran CLA 2013-11-29 15:26:05 EST
Fix and tests released here: http://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/?h=BETA_JAVA8&id=01bd53f266d07ca177ff8e7fb927b7206b4c562d.

Anirban, please review. TIA.
Comment 5 Srikanth Sankaran CLA 2013-11-29 15:29:58 EST
*** Bug 405133 has been marked as a duplicate of this bug. ***