Bug 543015 - an error appears with ::new instruction
Summary: an error appears with ::new instruction
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: APT (show other bugs)
Version: 4.10   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Generic inbox for the JDT-APT component CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-23 02:58 EST by Jean Roland CLA
Modified: 2018-12-23 02:58 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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