Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 545542 - Resolution of a method invocation failed (Java 11 lambda)
Summary: Resolution of a method invocation failed (Java 11 lambda)
Status: CLOSED DUPLICATE of bug 541532
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.10   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 4.11 M3   Edit
Assignee: Stephan Herrmann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-19 07:00 EDT by Sergei Vorobyov CLA
Modified: 2019-03-21 10:19 EDT (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 Sergei Vorobyov CLA 2019-03-19 07:00:18 EDT
Java 11 feature.

public class Lambda20 {
    public static void main(String[] args) {
        Arrays.stream(args)
                .filter((var x) -> x.isEmpty()) // Resolution of x.isEmpty() method invocation failed.
                .forEach(System.out::println);
    }
}

The resolveMethodBinding() of the MethodInvocation node returns null.

JDK 11.0.2 compiler compiles the code without errors.
Comment 1 Stephan Herrmann CLA 2019-03-19 08:33:12 EDT
Thanks, this bug has meanwhile been fixed. Fix is available in the 2019-03 release due tomorrow :)

*** This bug has been marked as a duplicate of bug 541532 ***
Comment 2 Sergei Vorobyov CLA 2019-03-20 08:17:52 EDT
I need this fix in form of Eclipse JDT jar files. Where I can get modules of the 2019-03 release? Thanks.
Comment 3 Stephan Herrmann CLA 2019-03-20 16:43:37 EDT
(In reply to Sergei Vorobyov from comment #2)
> I need this fix in form of Eclipse JDT jar files. Where I can get modules of
> the 2019-03 release? Thanks.

Download the 2019-03 release? ;p

There's plenty of channels on which JDT is released.

If you need ecj via maven just use the proper dependency to get this:
  http://repo1.maven.org/maven2/org/eclipse/jdt/ecj/3.17.0/ecj-3.17.0.jar 

Here's a list of Eclipse update sites hosting the stuff:
  https://wiki.eclipse.org/Eclipse_Project_Update_Sites

etc.pp.
Comment 4 Sergei Vorobyov CLA 2019-03-21 10:19:22 EDT
Thank you so much, Stephan.