Bug 543015

Summary: an error appears with ::new instruction
Product: [Eclipse Project] JDT Reporter: Jean Roland <jean.roland>
Component: APTAssignee: Generic inbox for the JDT-APT component <jdt-apt-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3    
Version: 4.10   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Jean Roland CLA 2018-12-23 02:58:29 EST
Hi

I have a "The type org.eclipse.jdt.annotation.NonNull cannot be resolved. It is indirectly referenced from required .class files" in java Editor/problem view with the simple class. The error appears in line 1.
I have error with IntFunction<List<?>> f = ArrayList::new;
but not with IntFunction<List<?>> f = size -> new ArrayList(size);

package bug_eclipse_4_10;

import java.util.ArrayList;
import java.util.List;
import java.util.function.IntFunction;

class MyTest {
	void test() {
		IntFunction<List<?>> f = ArrayList::new;
//		IntFunction<List<?>> f = size -> new ArrayList(size);
	}
}

Thanks

-- Configuration Details --
Product: Eclipse IDE 4.10.0.20181214-0600 (org.eclipse.epp.package.modeling.product)Installed Features:
 org.eclipse.jdt 3.16.0.v20181206-1038
Versioning Plugin:
 org.eclipse.platform 4.10.0.v20181206-0815